diff --git a/PowerEditor/scintilla.original.forUpdating/lexilla532.zip b/PowerEditor/scintilla.original.forUpdating/lexilla533.zip similarity index 77% rename from PowerEditor/scintilla.original.forUpdating/lexilla532.zip rename to PowerEditor/scintilla.original.forUpdating/lexilla533.zip index c7d76db60..66f3e2f25 100644 Binary files a/PowerEditor/scintilla.original.forUpdating/lexilla532.zip and b/PowerEditor/scintilla.original.forUpdating/lexilla533.zip differ diff --git a/PowerEditor/scintilla.original.forUpdating/scintilla550.zip b/PowerEditor/scintilla.original.forUpdating/scintilla551.zip similarity index 70% rename from PowerEditor/scintilla.original.forUpdating/scintilla550.zip rename to PowerEditor/scintilla.original.forUpdating/scintilla551.zip index beec5228d..4f02f437e 100644 Binary files a/PowerEditor/scintilla.original.forUpdating/scintilla550.zip and b/PowerEditor/scintilla.original.forUpdating/scintilla551.zip differ diff --git a/lexilla/.github/workflows/build-check-macos.yml b/lexilla/.github/workflows/build-check-macos.yml index 7534f6691..440d17b84 100644 --- a/lexilla/.github/workflows/build-check-macos.yml +++ b/lexilla/.github/workflows/build-check-macos.yml @@ -5,7 +5,7 @@ on: [push] jobs: build: - runs-on: macos-11 + runs-on: macos-latest strategy: matrix: @@ -18,16 +18,16 @@ jobs: (cd .. && wget --no-verbose https://www.scintilla.org/scintilla500.zip) (cd .. && unzip scintilla500.zip) - name: Unit Test - run: (cd test/unit && make DEBUG=1 CXX=${{matrix.cpp_compiler}} test) + run: (cd test/unit && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN) test) - name: Build Lexilla - run: (cd src && make DEBUG=1 CXX=${{matrix.cpp_compiler}}) + run: (cd src && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN)) - uses: actions/upload-artifact@v4 with: name: liblexilla.dylib path: bin/liblexilla.dylib - name: Test lexing and folding - run: (cd test && make DEBUG=1 CXX=${{matrix.cpp_compiler}} test) + run: (cd test && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN) test) - name: CheckLexilla C Example - run: (cd examples/CheckLexilla && make DEBUG=1 check) + run: (cd examples/CheckLexilla && make DEBUG=1 --jobs=$(getconf _NPROCESSORS_ONLN) check) - name: SimpleLexer Example - run: (cd examples/SimpleLexer && make DEBUG=1 CXX=${{matrix.cpp_compiler}} check) + run: (cd examples/SimpleLexer && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN) check) diff --git a/lexilla/.github/workflows/build-check-win32.yml b/lexilla/.github/workflows/build-check-win32.yml index f9534e74e..a80e37a3d 100644 --- a/lexilla/.github/workflows/build-check-win32.yml +++ b/lexilla/.github/workflows/build-check-win32.yml @@ -43,11 +43,11 @@ jobs: - name: CheckLexilla C Example run: | cd examples/CheckLexilla - cl CheckLexilla.c -I ../../include -Fe: CheckLexilla + cl -MP CheckLexilla.c -I ../../include -Fe: CheckLexilla .\CheckLexilla.exe cd ../.. - name: SimpleLexer Example run: | cd examples/SimpleLexer - cl -std:c++17 -EHsc -LD -I ../../../scintilla/include -I ../../include -I ../../lexlib SimpleLexer.cxx ../../lexlib/*.cxx + cl -MP -std:c++17 -EHsc -LD -I ../../../scintilla/include -I ../../include -I ../../lexlib SimpleLexer.cxx ../../lexlib/*.cxx cd ../.. diff --git a/lexilla/.github/workflows/build-check.yml b/lexilla/.github/workflows/build-check.yml index 98a6130d4..296cfb53b 100644 --- a/lexilla/.github/workflows/build-check.yml +++ b/lexilla/.github/workflows/build-check.yml @@ -18,17 +18,17 @@ jobs: (cd .. && wget --no-verbose https://www.scintilla.org/scintilla500.zip) (cd .. && unzip scintilla500.zip) - name: Unit Test - run: (cd test/unit && make DEBUG=1 CXX=${{matrix.cpp_compiler}} test) + run: (cd test/unit && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN) test) - name: Build Lexilla - run: (cd src && make DEBUG=1 CXX=${{matrix.cpp_compiler}}) + run: (cd src && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN)) - uses: actions/upload-artifact@v4 with: name: liblexilla-${{matrix.cpp_compiler}}.so path: bin/liblexilla.so overwrite: true - name: Test lexing and folding - run: (cd test && make DEBUG=1 CXX=${{matrix.cpp_compiler}} test) + run: (cd test && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN) test) - name: CheckLexilla C Example - run: (cd examples/CheckLexilla && make DEBUG=1 check) + run: (cd examples/CheckLexilla && make DEBUG=1 --jobs=$(getconf _NPROCESSORS_ONLN) check) - name: SimpleLexer Example - run: (cd examples/SimpleLexer && make DEBUG=1 CXX=${{matrix.cpp_compiler}} check) + run: (cd examples/SimpleLexer && make DEBUG=1 CXX=${{matrix.cpp_compiler}} --jobs=$(getconf _NPROCESSORS_ONLN) check) diff --git a/lexilla/cppcheck.suppress b/lexilla/cppcheck.suppress index 1e96cda75..5fbab62e6 100644 --- a/lexilla/cppcheck.suppress +++ b/lexilla/cppcheck.suppress @@ -11,6 +11,9 @@ useInitializationList // produces same result on empty collections useStlAlgorithm +// Common for lexer object destructors +missingOverride + // Some non-explicit constructors are used for conversions or are private to lexers noExplicitConstructor @@ -153,7 +156,6 @@ constVariableReference:lexilla/lexers/LexTCL.cxx invalidscanf:lexilla/lexers/LexTCMD.cxx constParameterReference:lexilla/lexers/LexTeX.cxx variableScope:lexilla/lexers/LexTeX.cxx -knownConditionTrueFalse:lexilla/lexers/LexTxt2tags.cxx knownConditionTrueFalse:lexilla/lexers/LexVB.cxx constParameterReference:lexilla/lexers/LexVerilog.cxx variableScope:lexilla/lexers/LexVerilog.cxx @@ -205,3 +207,9 @@ knownConditionTrueFalse:lexilla/test/unit/testCharacterSet.cxx // cppcheck fails REQUIRE from Catch comparisonOfFuncReturningBoolError:lexilla/test/unit/*.cxx + +// cppcheck fails SECTION from Catch +syntaxError:lexilla/test/unit/*.cxx + +// argv has a standardised type +constParameter:lexilla/examples/CheckLexilla/CheckLexilla.c diff --git a/lexilla/doc/Lexilla.html b/lexilla/doc/Lexilla.html index cb549e763..2d5366a93 100644 --- a/lexilla/doc/Lexilla.html +++ b/lexilla/doc/Lexilla.html @@ -9,7 +9,7 @@ - +