Skip to content

Releases

1.10.1

Choose a tag to compare

@danmar danmar released this 20 Nov 07:54
76d62d1

What's Changed

  • Fix #769 (PORTABILITY_NO_EOF_NEWLINE is reported for C++ headers because included files are tokenized with an empty DUI) by @danmar in #770

Full Changelog: 1.10.0...1.10.1

1.10.0

Choose a tag to compare

@danmar danmar released this 19 Nov 11:03
e5cb618

What's Changed

  • Expand function macros that have arguments at the end by @pfultz2 in #695
  • Fix #709 Do not evaluate #elif after a taken group by @danmar in #710
  • Fix #711 (#if true evaluates to false in C++ and C23) by @danmar in #712
  • Fix #714 (# operator escapes backslashes outside string literals) by @danmar in #715
  • Fix #716 (#if: && and || are evaluated with the same precedence) by @danmar in #717
  • Fix #718 (# operator drops the space that a comment stands for) by @danmar in #719
  • Fix #720 (#if: wrong macro usage for macros defined before the #if) by @danmar in #721
  • Fix #612: reject floating literals in preprocessor conditions by @Abusalah0 in #706
  • Fix #724 (##: valid token pastes are rejected) by @danmar in #725
  • Fix #722 (#if: &&, || and ?: do not short-circuit) by @danmar in #723
  • Fix #726 (#if: ?: treats a zero condition as true unless it is written exactly as 0) by @danmar in #728
  • Fix #727 (#if: two unary operators in a row silently evaluate to false) by @danmar in #730
  • Fix #731 (#if: an operator with a missing operand silently evaluates to false) by @danmar in #732
  • Fix #729 (#if: not and compl are only recognized at the start of an expression or after () by @danmar in #733
  • Fix #735 (Refactoring: split TokenList::readfile() into smaller functions) by @danmar in #736
  • Fix #737 (Refactoring: separate the cppcheck-specific &= handling from TokenList::combineOperators()) by @danmar in #738
  • Fix #739 (Add a lookahead buffer to TokenList::Stream) by @danmar in #740
  • Fix #744 (Add regression tests for macro expansion) by @danmar in #745
  • Fix #746 (Split expandHashHash and expandHash into check and build helpers) by @danmar in #747
  • Fix #748 (Move the argument count check into Macro::getMacroParameters()) by @danmar in #749
  • Fix #750 (Extract expandBuiltin, expandDefined and copyMacroCall) by @danmar in #751
  • Add TokenList::setLocation() for setting the location of all tokens by @danmar in #753
  • hash: keep the space after an operator of two characters by @danmar in #755
  • Fix #756 (##: pasting a name or number with a string or character literal is an error) by @danmar in #757
  • Rescan substituted macro arguments so deferred calls expand like gcc by @pfultz2 in #713
  • Fix #760 (record argument for integer constant macros) by @danmar in #761

New Contributors

Full Changelog: 1.9.1...1.10.0

1.9.1

Choose a tag to compare

@glankk glankk released this 25 Aug 16:47
2499b51

What's Changed

  • Fix rescanning when a macro expansion result forms a new function-like macro call by @pfultz2 in #682
  • Fix cppcheck selfcheck issue by @glankk in #696
  • Add newline to macro def string before tokenizing by @glankk in #697
  • Fix #700: macro not set for tokens expanded from __LINE__ inside function-like macros by @ludviggunne in #701
  • Call load_callback for all includes, even cached by @glankk in #703

Full Changelog: 1.9.0...1.9.1

1.9.0

Choose a tag to compare

@danmar danmar released this 04 Aug 12:30
f420e61

What's Changed

Full Changelog: 1.8.1...1.9.0

1.8.1

Choose a tag to compare

@firewave firewave released this 15 Jul 18:16
162eb96

What's Changed

  • optimized std::stack usage in simplecpp::TokenList::combineOperators() by @firewave in #659
  • Fix #669: Manually included files are not reported missing by preprocess by @glankk in #670

Full Changelog: 1.8.0...1.8.1

1.8.0

Choose a tag to compare

@danmar danmar released this 02 Jul 12:49
163fc92

What's Changed

  • Fix #657: combineOperators(): &= gets split up incorrectly by @ludviggunne in #658
  • avoid unnecessary container lookups in simplecpp::preprocess() by @firewave in #661
  • fixed #578 - removed support for #file and #endfile by @firewave in #585
  • moved part of FileDataCache implementation into source file by @firewave in #651
  • fixed #504 / refs #507 - cleaned up and improved parsing of #line preprocessor directive by @firewave in #586
  • Remove dead branch in simplecpp::Macro::expandHashHash() by @pfultz2 in #664
  • Add file load callback (fixes #667) by @glankk in #668
  • improved test coverage of simplecpp::Macro::expandHashHash() by @firewave in #665

New Contributors

Full Changelog: 1.7.0...1.8.0

1.7.0

Choose a tag to compare

@danmar danmar released this 27 May 07:56
2ce31ac

What's Changed

  • reverted to Clang 21 for now by @firewave in #630
  • clang-tidy.yml: updated to Clang 22 - again by @firewave in #633
  • added basic test coverage for IfCond and MacroUsage by @firewave in #629
  • fixed #632 - avoid unhandled simplecpp::Macro::Error in simplecpp::preprocess with -D by @firewave in #631
  • clang-tidy.yml: run clang-tidy with C++23 by @firewave in #635
  • CI-mingw.yml: exclude clang++ on MINGW32 as it is no longer available by @firewave in #644
  • CI-windows.yml: updated Python to 3.14 by @firewave in #642
  • Refs #638 Fix stylistic issues uncovered by cppcheck by @chrchr-github in #643
  • CI-unixish.yml: added ubuntu-22.04-arm, ubuntu-24.04-arm and macos-26-intel by @firewave in #640
  • main.cpp: fixed handling of options without value by @firewave in #645
  • Fix #590 (Incorrect expansion of functional macros) by @danmar in #646
  • Refs #638: Avoid shadowing arguments by @ludviggunne in #639
  • test.cpp: also run tests with char buffer by @firewave in #261
  • CI-unixish.yml: added some missing g++ cases to matrix by @firewave in #649
  • added tests for various fixed issues by @firewave in #648
  • README.md: added note about repository move [skip ci] by @firewave in #650
  • main.cpp: added option -input=file|fstream|fstream|buffer to specify the TokenList interface / removed -is by @firewave in #647
  • CI-windows.yml: removed explicit usage of Visual Studio CMake generators by @firewave in #641
  • Fix known condition found by cppcheck by @chrchr-github in #652
  • Fix hang on UTF-16 LE BOM file by @chrchr-github in #636
  • Fixed #591: Newline in #error message by @wjakobsson in #654

New Contributors

Full Changelog: 1.6.5...1.7.0

1.6.5

Choose a tag to compare

@firewave firewave released this 27 Feb 13:05
5e00b60

What's Changed

  • improved test coverage of simplecpp::characterLiteralToLL() by @firewave in #601
  • CI-windows.yml: fixed standard in C++17 build by @firewave in #609
  • added MinGW workflow by @firewave in #475
  • do not default simplecpp::Location::line to 1 by @firewave in #597
  • enabled and fixed modernize-return-braced-init-list clang-tidy warnings by @firewave in #610
  • fixed #616 - report bad macro syntax via OutputList by @firewave in #617
  • added more @throws to documentation by @firewave in #618
  • use emplace_back by @firewave in #619
  • use initializer lists without assignment by @firewave in #624
  • test.cpp: improved testing of __FILE__ by @firewave in #623
  • make it possible to explicitly disable the legacy TokenList constructors by @firewave in #621
  • Fix #615 User-defined literal created from alternative and by @chrchr-github in #620
  • clang-tidy.yml: updated to Clang 22 by @firewave in #514
  • removed workarounds for Visual Studio conflicts with Cppcheck functions with same names by @firewave in #627

Full Changelog: 1.6.4...1.6.5

1.6.4

Choose a tag to compare

@danmar danmar released this 16 Dec 11:26
00a131e

What's Changed

  • refs #424 / fixed #589 - do not store reference to filelist in simplecpp::Location / added simplecpp::TokenList::file() / cleanups by @firewave in #573
  • CI-unixish.yml: removed macos-13 / added macos-15-intel and macos-26 by @firewave in #602
  • updated actions/setup-python to v6 by @firewave in #604
  • updated actions/checkout to v6 by @firewave in #603
  • added @throws to documentation / adjusted some catch handlers by @firewave in #600
  • CI-unixish.yml: also run sanitizers on latest macOS by @firewave in #607
  • build all code with all available C++ standards in CI by @firewave in #606
  • improved simplecpp::TokenList constructors by @firewave in #599

Full Changelog: 1.6.3...1.6.4

1.6.3

Choose a tag to compare

@danmar danmar released this 02 Dec 13:09
72ecd54

What's Changed

  • fixed #583 - fall back to GetFileInformationByHandle() when GetFileInformationByHandleEx() fails in simplecpp::FileDataCache::getFileId() by @firewave in #594
  • avoid some unchecked pointer dereferences by @firewave in #593

Full Changelog: 1.6.2...1.6.3