Compare commits

...
37 Commits
Author SHA1 Message Date
saalen 90d67d2d4e updated notes 2024-09-30 21:19:23 +02:00
saalen a69ed9af10 https://gitlab.com/saalen/astyle/-/issues/45 fix indent after single open parenthse 2024-09-29 16:14:00 +02:00
saalen eef8d891c5 https://sourceforge.net/p/astyle/bugs/273/ do not pad operator char * methods 2024-09-20 13:04:21 +02:00
saalen 9deaee74e5 https://sourceforge.net/p/astyle/bugs/250/ do not pad user defined type cast 2024-09-20 12:49:37 +02:00
saalen 5cde788686 https://sourceforge.net/p/astyle/bugs/148/ reformat 2024-09-19 17:49:13 +02:00
saalen a058fc310d https://sourceforge.net/p/astyle/bugs/148/ fixed bitfield line break with macros 2024-09-19 17:23:36 +02:00
saalen 80d1e38f82 fixed CI pipeline 2024-09-18 22:53:53 +02:00
saalen ed6f58014b extracted code of long methods in ASBeautifier 2024-09-17 15:35:33 +02:00
saalen 324fb75fc6 extracted code of long methods 2024-09-16 13:28:13 +02:00
saalen 446b5d02d6 https://gitlab.com/saalen/astyle/-/issues/27 removed flawed option --add-braces=nested 2024-09-13 16:50:49 +02:00
saalen ef760f1f26 refactored pad operand condition 2024-09-13 16:42:59 +02:00
saalen d8cf255be6 https://gitlab.com/saalen/astyle/-/issues/55 fixed GSC modulo padding 2024-09-13 16:03:48 +02:00
saalen 2d7211aa6c removed ASBase inheritance from ASResource 2024-09-10 22:34:31 +02:00
saalen 96d2c94500 updated copyright notes 2024-09-10 21:57:42 +02:00
saalen 723c3d9d67 apply clang-tidy readability-container-size-empty option 2024-09-10 21:51:26 +02:00
saalen 436c1a9abc apply clang-tidy modernize and performance options 2024-09-10 21:29:17 +02:00
saalen 91402fea65 Merge branch 'master' of gitlab.com:saalen/astyle 2024-09-10 16:47:23 +02:00
saalen 91acbad5d8 updated version 2024-09-10 16:46:43 +02:00
saalen f1424af25b https://gitlab.com/saalen/astyle/-/issues/35 reverted - too many regressions 2024-09-10 15:28:00 +02:00
saalen 84ae8ff727 https://gitlab.com/saalen/astyle/-/issues/53 fix padding of multiplier before fct calls 2024-09-09 16:06:45 +02:00
Andre Simon 38c12d4e2f Merge branch 'master' of https://gitlab.com/saalen/astyle 2024-09-05 21:24:34 +02:00
saalen 258aa4fc93 https://sourceforge.net/p/astyle/bugs/580/ fix pad-include with UTF-8 BOM 2024-09-04 15:46:00 +02:00
saalen b75b162f07 updated changes 2024-09-04 14:34:43 +02:00
saalen 55e03f5b74 https://sourceforge.net/p/astyle/bugs/580/ fix pad-include and pad-negation setters 2024-09-04 14:33:08 +02:00
saalen e34c3c3962 fix CI pipeline 2024-09-01 13:43:02 +02:00
saalen b7ddacb2bf updated JNI interface to offer old API and Arduino IDE interface 2024-08-31 16:19:29 +02:00
saalen b3f6f32474 updated docs 2024-08-30 16:10:42 +02:00
saalen ec5e6033ca https://sourceforge.net/p/astyle/tickets/578/ improve --align-pointer=type after parens and brackets 2024-08-30 15:55:27 +02:00
saalen 5c25e14984 updated JNI interface to use Arduino IDE conventions 2024-08-29 15:05:43 +02:00
saalen 7ed1905602 removed VMS compilation options 2024-08-29 14:01:12 +02:00
saalen 859e318894 https://sourceforge.net/p/astyle/bugs/572/ disabled alignment of multiplication operands 2024-08-29 13:59:38 +02:00
Andre Simon 3fab90db91 Merge branch 'master' of https://gitlab.com/saalen/astyle 2024-08-20 20:05:34 +02:00
saalen 1563bf4e80 apply clang-tidy modernize-use-emplace 2024-08-20 12:16:26 +02:00
saalen df35491d3b apply clang-tidy modernize-use-auto 2024-08-20 12:11:54 +02:00
saalen 913f24c3ef https://sourceforge.net/p/astyle/bugs/563 fix indent of member function call parameters 2024-08-20 10:58:48 +02:00
Andre Simon 6ea6067349 Merge branch 'master' of https://gitlab.com/saalen/astyle 2024-08-09 23:19:54 +02:00
Andre Simon 5a79a97e5c https://sourceforge.net/p/astyle/bugs/576/ fix some typos
Signed-off-by: Andre Simon <as@andre-simon.de>
2024-07-24 21:39:57 +02:00
23 changed files with 2906 additions and 2880 deletions
+30 -6
View File
@@ -15,19 +15,43 @@
</head>
<body>
<h1>Artistic Style Release Notes</h1>
<h3>Artistic Style 3.6.3 (October 2024)</h3>
<ul>
<li>Fix indent after single open parenthse (https://gitlab.com/saalen/astyle/-/issues/45)</li>
<li>Fix padding of operator char * methods (https://sourceforge.net/p/astyle/bugs/273/)</li>
<li>Fix padding of user defined type cast (https://sourceforge.net/p/astyle/bugs/250/)</li>
<li>Fix bitfield line break with macros (https://sourceforge.net/p/astyle/bugs/148/ )</li>
<li>Fix GSC modulo padding (https://gitlab.com/saalen/astyle/-/issues/55)</li>
<li>Removed flawed option --add-braces=nested (https://gitlab.com/saalen/astyle/-/issues/27)</li>
</ul>
<h3>Artistic Style 3.6.2 (September 2024)</h3>
<ul>
<li>Reverted alignment of user defined types using --align-pointer (https://gitlab.com/saalen/astyle/-/issues/35)</li>
</ul>
<h3>Artistic Style 3.6.1 (September 2024)</h3>
<ul>
<li>Fix setting of --pad-negation and --pad-include options (https://sourceforge.net/p/astyle/bugs/580/)</li>
<li>Fix --pad-include with UTF-8 BOM (https://sourceforge.net/p/astyle/bugs/580/)</li>
<li>Improve multiplication recognition with --align-pointer=type (https://sourceforge.net/p/astyle/bugs/572/)</li>
<li>Improve --align-pointer=type after parens and brackets (https://sourceforge.net/p/astyle/bugs/578/)</li>
<li>Removed VMS compilation options</li>
<li>Updated JNI interface to use Arduino IDE conventions</li>
</ul>
<h3>Artistic Style 3.6 (August 2024)</h3>
<ul>
<li>Add option --pad-include (https://sourceforge.net/p/astyle/tickets/117/)</li>
<li>combined GHC and GSC style options</li>
<li>improve combination of --align-pointer=type and --pad-oper (https://sourceforge.net/p/astyle/tickets/578/)</li>
<li>improve multiplication recognition with --align-pointer=type (https://sourceforge.net/p/astyle/tickets/572/)</li>
<li>update compiler options in build files</li>
<li>fix indent of assignments within macros ( https://gitlab.com/saalen/astyle/-/issues/47)</li>
<li>Combined GHC and GSC style options</li>
<li>Improve combination of --align-pointer=type and --pad-oper (https://sourceforge.net/p/astyle/bugs/578/)</li>
<li>Improve multiplication recognition with --align-pointer=type (https://sourceforge.net/p/astyle/bugs/572/)</li>
<li>Update compiler options in build files</li>
<li>Fix indent of assignments within macros ( https://gitlab.com/saalen/astyle/-/issues/47)</li>
</ul>
<h3>Artistic Style 3.5.2 (July 2024)</h3>
+3
View File
@@ -92,6 +92,9 @@ parser:flag "--pad-comma"
parser:flag "--pad-negation"
:description "Insert space padding after negations"
parser:flag "--pad-include"
:description "Insert space padding after include directives"
parser:flag "--pad-paren"
:description "Insert space padding around parenthesis on both the outside and the inside"
+1106 -1016
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -1,5 +1,5 @@
// ASEnhancer.cpp
// Copyright (c) 2023 The Artistic Style Authors.
// Copyright (c) 2024 The Artistic Style Authors.
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.
@@ -104,7 +104,7 @@ void ASEnhancer::enhance(std::string& line, bool isInNamespace, bool isInPreproc
nextLineIsDeclareIndent = false;
}
if (line.length() == 0
if (line.empty()
&& !isInEventTable
&& !isInDeclareSection
&& !emptyLineFill)
@@ -238,7 +238,7 @@ size_t ASEnhancer::findCaseColon(std::string_view line, size_t caseIndex) const
*/
int ASEnhancer::indentLine(std::string& line, int indent) const
{
if (line.length() == 0
if (line.empty()
&& !emptyLineFill)
return 0;
+1445 -1470
View File
File diff suppressed because it is too large Load Diff
+3 -7
View File
@@ -1,5 +1,5 @@
// ASLocalizer.cpp
// Copyright (c) 2023 The Artistic Style Authors.
// Copyright (c) 2024 The Artistic Style Authors.
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.
//
@@ -43,12 +43,8 @@
#include <Windows.h>
#endif
#ifdef __VMS
#define __USE_STD_IOSTREAM 1
#include <assert>
#else
#include <cassert>
#endif
#include <cassert>
#include <clocale> // needed by some compilers
#include <cstdio>
+1 -1
View File
@@ -1,5 +1,5 @@
// ASLocalizer.h
// Copyright (c) 2023 The Artistic Style Authors.
// Copyright (c) 2024 The Artistic Style Authors.
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.
+4 -4
View File
@@ -1,5 +1,5 @@
// ASResource.cpp
// Copyright (c) 2023 The Artistic Style Authors.
// Copyright (c) 2024 The Artistic Style Authors.
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.
@@ -663,9 +663,9 @@ const std::string* ASBase::findHeader(std::string_view line, int i,
// the following accessor definitions are NOT headers
// goto default; is NOT a header
// default(int) keyword in C# is NOT a header
if ((header == &AS_GET
|| header == &AS_SET
|| header == &AS_DEFAULT)
if ((header == &ASResource::AS_GET
|| header == &ASResource::AS_SET
|| header == &ASResource::AS_DEFAULT)
&& (peekChar == '.' || peekChar == ';' || peekChar == '(' || peekChar == '='))
break;
return header;
+53 -54
View File
@@ -1,5 +1,5 @@
// astyle.h
// Copyright (c) 2023 The Artistic Style Authors.
// Copyright (c) 2024 The Artistic Style Authors.
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.
@@ -10,15 +10,10 @@
// headers
//-----------------------------------------------------------------------------
#ifdef __VMS
#define __USE_STD_IOSTREAM 1
#include <assert>
#else
#include <cassert>
#endif
#include <cassert>
#include <cctype>
#include <iostream> // for cout
#include <iostream>
#include <memory>
#include <string>
#include <string_view>
@@ -28,36 +23,7 @@
#include <cstring> // need both string and cstring for GCC
#endif
//-----------------------------------------------------------------------------
// declarations
//-----------------------------------------------------------------------------
#ifdef _MSC_VER
#pragma warning(disable: 4267) // conversion from size_t to int
#endif
#ifdef __BORLANDC__
#pragma warn -8004 // variable is assigned a value that is never used
#endif
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wconversion"
#endif
#ifdef __INTEL_COMPILER
// #pragma warning disable 383 // value copied to temporary, reference to temporary used
// #pragma warning disable 981 // operands are evaluated in unspecified order
#endif
#ifdef __clang__
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
#endif
#define ASTYLE_VERSION "3.6"
//-----------------------------------------------------------------------------
// astyle namespace
//-----------------------------------------------------------------------------
#define ASTYLE_VERSION "3.6.3"
namespace astyle {
@@ -244,17 +210,17 @@ public:
class ASResource
{
public:
void buildAssignmentOperators(std::vector<const std::string*>* assignmentOperators);
void buildCastOperators(std::vector<const std::string*>* castOperators);
void buildHeaders(std::vector<const std::string*>* headers, int fileType, bool beautifier = false);
void buildIndentableMacros(std::vector<const std::pair<const std::string, const std::string>* >* indentableMacros);
void buildIndentableHeaders(std::vector<const std::string*>* indentableHeaders);
void buildNonAssignmentOperators(std::vector<const std::string*>* nonAssignmentOperators);
void buildNonParenHeaders(std::vector<const std::string*>* nonParenHeaders, int fileType, bool beautifier = false);
void buildOperators(std::vector<const std::string*>* operators, int fileType);
void buildPreBlockStatements(std::vector<const std::string*>* preBlockStatements, int fileType);
void buildPreCommandHeaders(std::vector<const std::string*>* preCommandHeaders, int fileType);
void buildPreDefinitionHeaders(std::vector<const std::string*>* preDefinitionHeaders, int fileType);
static void buildAssignmentOperators(std::vector<const std::string*>* assignmentOperators);
static void buildCastOperators(std::vector<const std::string*>* castOperators);
static void buildHeaders(std::vector<const std::string*>* headers, int fileType, bool beautifier = false);
static void buildIndentableMacros(std::vector<const std::pair<const std::string, const std::string>* >* indentableMacros);
static void buildIndentableHeaders(std::vector<const std::string*>* indentableHeaders);
static void buildNonAssignmentOperators(std::vector<const std::string*>* nonAssignmentOperators);
static void buildNonParenHeaders(std::vector<const std::string*>* nonParenHeaders, int fileType, bool beautifier = false);
static void buildOperators(std::vector<const std::string*>* operators, int fileType);
static void buildPreBlockStatements(std::vector<const std::string*>* preBlockStatements, int fileType);
static void buildPreCommandHeaders(std::vector<const std::string*>* preCommandHeaders, int fileType);
static void buildPreDefinitionHeaders(std::vector<const std::string*>* preDefinitionHeaders, int fileType);
public:
static const std::string AS_IF, AS_ELSE;
@@ -307,7 +273,7 @@ public:
// Functions definitions are at the end of ASResource.cpp.
//-----------------------------------------------------------------------------
class ASBase : protected ASResource
class ASBase
{
private:
// all variables should be set by the "init" function
@@ -417,6 +383,9 @@ protected:
std::string extractPreprocessorStatement(std::string_view line) const;
std::string trim(std::string_view str) const;
std::string rtrim(std::string_view str) const;
bool isNumericVariable(std::string_view word) const;
bool lineStartsWithNumericType(std::string_view line) const;
// variables set by ASFormatter - must be updated in activeBeautifierStack
int inLineNumber;
@@ -474,6 +443,15 @@ private: // functions
std::vector<std::vector<const std::string*>*>* copyTempStacks(const ASBeautifier& other) const;
std::pair<int, int> computePreprocessorIndent();
bool handleHeaderSection(std::string_view line, size_t *i, bool closingBraceReached, bool *haveCaseIndent);
bool handleColonSection(std::string_view line, size_t *i, bool tabIncrementIn, char *ch);
void handleEndOfStatement(size_t i, bool *closingBraceReached, char *ch);
void handleParens(std::string_view line, size_t i, bool tabIncrementIn, bool * isInOperator, char ch);
void handleClosingParen(std::string_view line, size_t i, bool tabIncrementIn);
void handlePotentialHeaderSection(std::string_view line, size_t *i, bool tabIncrementIn, bool *isInOperator);
void handlePotentialOperatorSection(std::string_view line, size_t i, bool tabIncrementIn, bool haveAssignmentThisLine, bool isInOperator);
private: // variables
int beautifierFileType;
std::vector<const std::string*>* headers;
@@ -702,11 +680,12 @@ public: // functions
void init(ASSourceIterator* si) override;
bool hasMoreLines() const;
std::string nextLine();
LineEndFormat getLineEndFormat() const;
void extracted();
std::string nextLine();
LineEndFormat getLineEndFormat() const;
bool getIsLineReady() const;
void setFormattingStyle(FormatStyle style);
void setAddBracesMode(int state);
void setAddBracesMode(bool state);
void setAddOneLineBracesMode(bool state);
void setRemoveBracesMode(bool state);
void setAttachClass(bool state);
@@ -805,7 +784,6 @@ private: // functions
bool isMultiStatementLine() const;
bool isNextWordSharpNonParenHeader(int startChar) const;
bool isNonInStatementArrayBrace() const;
bool isNumericVariable(std::string_view word) const;
bool isOkToSplitFormattedLine();
bool isPointerOrReference() const;
bool isPointerOrReferenceCentered() const;
@@ -889,6 +867,27 @@ private: // functions
bool endOnEmptyLine = false,
const std::shared_ptr<ASPeekStream>& streamArg = nullptr) const;
bool handleImmediatelyPostHeaderSection();
bool handlePassedSemicolonSection();
void handleAttachedReturnTypes();
void handleClosedBracesOrParens();
void handleBraces();
void handleBreakLine();
bool handlePotentialHeader(const std::string *);
void handleEndOfBlock();
void handleColonSection();
void handlePotentialHeaderPart2();
void handlePotentialOperator(const std::string *);
void handleParens();
void handleOpenParens();
void formatFirstOpenBrace(BraceType braceType);
void formatOpenBrace();
void formatCloseBrace(BraceType braceType);
private: // variables
int formatterFileType;
std::vector<const std::string*>* headers;
+223 -291
View File
File diff suppressed because it is too large Load Diff
+10 -2
View File
@@ -1,5 +1,5 @@
// astyle_main.h
// Copyright (c) 2023 The Artistic Style Authors.
// Copyright (c) 2024 The Artistic Style Authors.
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.
@@ -332,7 +332,7 @@ private: // functions
bool isOption(const std::string& arg, const char* op);
bool isOption(const std::string& arg, const char* a, const char* b);
bool isParamOption(const std::string& arg, const char* option);
bool isPathExclued(const std::string& subPath);
bool isPathExcluded(const std::string& subPath);
void launchDefaultBrowser(const char* filePathIn = nullptr) const;
void printHelp() const;
void printMsg(const char* msg, const std::string& data) const;
@@ -387,6 +387,7 @@ private:
void STDCALL javaErrorHandler(int errorNumber, const char* errorMessage);
char* STDCALL javaMemoryAlloc(unsigned long memoryNeeded);
// the following function names are constructed from method names in the calling java program
extern "C" EXPORT
jstring STDCALL Java_AStyleInterface_AStyleGetVersion(JNIEnv* env, jclass);
extern "C" EXPORT
@@ -394,6 +395,13 @@ jstring STDCALL Java_AStyleInterface_AStyleMain(JNIEnv* env,
jobject obj,
jstring textInJava,
jstring optionsJava);
extern "C" EXPORT
jstring STDCALL Java_cc_arduino_packages_formatter_AStyleInterface_AStyleGetVersion(JNIEnv* env, jclass);
extern "C" EXPORT
jstring STDCALL Java_cc_arduino_packages_formatter_AStyleInterface_AStyleMain(JNIEnv* env,
jobject obj,
jstring textInJava,
jstring optionsJava);
#endif // ASTYLE_JNI
//----------------------------------------------------------------------------
+5 -6
View File
@@ -92,14 +92,14 @@
ErrorHandler method.</p>
<p>
The function will NOT fail for an invalid option in the formatting options. In this case, an error message is
sent to the error handling function and the formatted source code is returned without using the invalid
sent to the error handling function and the formatted source code is returned without using the invalid
option.</p>
<h4>Remarks</h4>
<p>
The ASyleMain function must be called from the class AStyleInterface. The name of the function in Artistic Style
is Java_AStyleInterface_AStyleMain. If the class name is changed, or the method name is changed, the function
is Java_cc_arduino_packages_formatter_AStyleInterface_AStyleMain. If the class name is changed, or the method name is changed, the function
names in the Artistic Style shared library must also be changed.</p>
<p>
The call to AStyleMain should be placed in a try/catch block that contains an UnsatisfiedLinkError to handle not
@@ -127,7 +127,7 @@
<p>
The AStyleGetVersion function must be called from the class AStyleInterface. The name of the function in Artistic
Style is Java_AStyleInterface_AStyleGetVersion. If the class name is changed, or the method name is changed, the
Style is Java_cc_arduino_packages_formatter_AStyleInterface_AStyleGetVersion. If the class name is changed, or the method name is changed, the
function names in the Artistic Style shared library must also be changed.</p>
<p>
The call to AStyleMain should be placed in a try/catch block that contains an UnsatisfiedLinkError to handle not
@@ -183,7 +183,7 @@
<p>
&nbsp;</p>
<div class="hl">
<pre class="hl">
<pre class="hl">
<span class="hl slc">// Example.java</span>
<span class="hl com">/*</span>
@@ -328,7 +328,7 @@
<p>
&nbsp;</p>
<div class="hl">
<pre class="hl">
<pre class="hl">
<span class="hl slc">// AStyleInterface.java</span>
<span class="hl com">/**</span>
@@ -497,4 +497,3 @@
</body>
</html>
+1 -1
View File
@@ -38,7 +38,7 @@ fi
# astyle -R "%indir%\*.cpp" "%indir%\*.h"
# if [ $? -ne 0 ] ; then read -sn1 -p "Error executing astyle!"; fi
# variables for fle processing
# variables for file processing
#echo "processing files..."
fileHasSpaces=false # a file or directory name has spaces
extLength=${#fileext} # length of the file extension
+2 -2
View File
@@ -104,7 +104,7 @@ def get_library_name():
elif platform.system() == "Darwin":
libext = ".dylib"
else:
error("Cannot indentify platform: " + platform.system())
error("Cannot identify platform: " + platform.system())
# IronPython needs the '.'
for file_name in os.listdir('.'):
if (os.path.isfile(file_name)
@@ -138,7 +138,7 @@ def get_source_code_bytes(file_path):
"""
# read the file as a byte string by declaring it as binary
# version 3 will read unicode if not declared as binary
# IronPython must be explicitely converted to bytes???
# IronPython must be explicitly converted to bytes???
try:
file_in = open(file_path, 'rb')
bytes_in = bytes(file_in.read())
+2 -2
View File
@@ -44,7 +44,7 @@ def main():
text_in = get_source_code(file_path)
# unicode must be encoded to utf-8 bytes
# encoding to utf-8 will not cause an exception
# IronPython must be explicitely converted to bytes???
# IronPython must be explicitly converted to bytes???
if __is_unicode__ or __is_iron_python__:
text_in = bytes(text_in.encode('utf-8'))
options_in = bytes(options.encode('utf-8'))
@@ -119,7 +119,7 @@ def get_library_name():
elif platform.system() == "Darwin":
libext = ".dylib"
else:
error("Cannot indentify platform: " + platform.system())
error("Cannot identify platform: " + platform.system())
# IronPython needs the '.'
for file_name in os.listdir('.'):
if (os.path.isfile(file_name)
+1 -1
View File
@@ -1,6 +1,6 @@
#! /usr/bin/python3
"""Check AboutDlgBase.h to AboutDlg.h to verify that all virtual fuctions
"""Check AboutDlgBase.h to AboutDlg.h to verify that all virtual functions
are overridden.
"""
+2 -2
View File
@@ -1,7 +1,7 @@
#! /usr/bin/python3
"""Check AStyleDlgBase.h to AstyleDlg.h to verify that all virtual fuctions are overridden.
Check AStyleDlgBase.h to AstyleDlgBase.cpp to verify that all identifiers have an exent
"""Check AStyleDlgBase.h to AstyleDlg.h to verify that all virtual functions are overridden.
Check AStyleDlgBase.h to AstyleDlgBase.cpp to verify that all identifiers have an extent
and therefore a preview display.
Check AStyleDlgBase.h to AstyleDlg.cpp to verify that all radio buttons hhave a
bind event so a mouse click will be displayed in the preview widdow..
+1 -1
View File
@@ -67,7 +67,7 @@ def find_class_diffs(header_variables, class_variables):
# -----------------------------------------------------------------------------
def get_constructor_variables(class_variables, astyleiface_path):
"""Read the AStyleIFace file and save the class constuctor variables."""
"""Read the AStyleIFace file and save the class constructor variables."""
class_lines = [0, 0] # line numbers for class constructor
class_total = 0 # total variables for class constructor
+1 -1
View File
@@ -1,6 +1,6 @@
#! /usr/bin/python3
"""Check EditorDlgBase.h to EditorDlg.h to verify that all virtual fuctions
"""Check EditorDlgBase.h to EditorDlg.h to verify that all virtual functions
are overridden.
"""
+1 -1
View File
@@ -1,6 +1,6 @@
#! /usr/bin/python3
"""Check AStyleIFace.h to Main_Test.h to verify that all virtual fuctions are overridden.
"""Check AStyleIFace.h to Main_Test.h to verify that all virtual functions are overridden.
"""
# to disable the print statement and use the print() function (version 3 format)
+3 -3
View File
@@ -86,7 +86,7 @@ def change_static_configs(line, file_path):
line = line.replace("true", "false")
#
# TESTS FOR VS 2010 ONLY
# Later relases use macros defined in a "props" file
# Later releases use macros defined in a "props" file
# and macros are used for the variables.
if "_vc10_" in file_path:
line = change_vs2010_multiple_lines(line)
@@ -99,7 +99,7 @@ def change_static_configs(line, file_path):
def change_vs2010_multiple_lines(line):
""" TESTS FOR VS 2010 ONLY
These tests change data that is defined in a Static ItemDefinitionGroup.
Later relases use macros defined in a "props" file.
Later releases use macros defined in a "props" file.
Return the updated line.
"""
old_lib = "wxmsw30" + "u_"
@@ -124,7 +124,7 @@ def change_vs2010_multiple_lines(line):
def change_vs2010_single_line_data(line):
""" TESTS FOR VS 2010 ONLY
These tests change data that is defined on a single line.
Later relases use macros defined in a "props" file.
Later releases use macros defined in a "props" file.
Return the updated line.
"""
old_lib = "wxmsw30" + "u_"
+3 -3
View File
@@ -505,9 +505,9 @@ def process_file_suppressions(file_suppression_list):
""" Generate suppressions for an entire file.
"""
file_suppression_list.append("// Suppressed on the Command Line\n")
file_suppression_list.append("// functionStatic is supressed for the entire project.\n")
file_suppression_list.append("// noValidConfiguration is supressed for the entire project.\n")
#~ file_suppression_list.append("// purgedConfiguration is supressed for the entire project.\n")
file_suppression_list.append("// functionStatic is suppressed for the entire project.\n")
file_suppression_list.append("// noValidConfiguration is suppressed for the entire project.\n")
#~ file_suppression_list.append("// purgedConfiguration is suppressed for the entire project.\n")
file_suppression_list.append("//\n")
# -----------------------------------------------------------------------------
+3 -3
View File
@@ -24,11 +24,11 @@ AS_RELEASE = "3.2"
#EXTRACT_ALL = False
EXTRACT_ALL = True
# inut from AStyleWx directory
# input from AStyleWx directory
__astylewx_dir = libastylewx.get_astylewx_directory()
# inut from AStyleWxTest directory
# input from AStyleWxTest directory
__astylewxtest_dir = libastylewx.get_astylewxtest_directory()
# inut from AStyle directory
# input from AStyle directory
__astyle_dir = libastylewx.get_astyle_directory()
# output to Project directory
__base_dir = libastylewx.get_project_directory()