Commit Graph

130 Commits

Author SHA1 Message Date
Oliver Stöneberg a0b1285f4a
added CMake option `BUILD_CORE_DLL` to build lib as `cppcheck-core.dll` with Visual Studio (#4733) 2023-01-26 22:13:07 +01:00
Oliver Stöneberg 99acd3145e
bumped simplecpp to 9dc2c3df53 (#4726) 2023-01-20 15:41:32 +01:00
Oliver Stöneberg bdee2ffc32
bump simplecpp (#4618) 2022-12-09 07:18:13 +01:00
Oliver Stöneberg 88be6ec596
bump simplecpp (#4524) 2022-09-30 07:26:48 +02:00
Daniel Marjamäki 5d5b6bda3a bump simplecpp 2022-07-27 21:46:15 +02:00
Oliver Stöneberg a44cbb75ec
bump simplecpp (#4022) 2022-04-14 18:13:13 +02:00
Daniel Marjamäki 0725aa3f8b Bump simplecpp 2022-03-23 18:04:31 +01:00
Daniel Marjamäki b6fa9bb5aa Revert "bump simplecpp"
This reverts commit bba31be87a.
2022-03-21 19:11:26 +01:00
Daniel Marjamäki bba31be87a bump simplecpp 2022-03-21 18:53:18 +01:00
Oliver Stöneberg 0d336b868c
avoid some Clang compiler warnings (#3896) 2022-03-13 20:07:58 +01:00
Oliver Stöneberg 8f7770f512
added an include-what-you-use GitHub Action (#3759) 2022-02-01 17:19:19 +01:00
Daniel Marjamäki c02dd5bf23 bump simplecpp 2021-12-16 21:18:27 +01:00
Daniel Marjamäki 561e9174fa Bump simplecpp 2021-07-21 20:29:00 +02:00
Daniel Marjamäki 2bc87d13e1 Bump simplecpp 2021-06-28 19:47:37 +02:00
keinflue c77caf637c
Bump simplecpp (#3255) 2021-05-10 22:46:31 +02:00
Daniel Marjamäki f4e69b99d2 bump simplecpp 2021-04-30 17:41:59 +02:00
Daniel Marjamäki 659a03e754 Bump simplecpp 2021-04-26 16:25:39 +02:00
Daniel Marjamäki c638edc8b4 Bump simplecpp 2021-02-21 19:13:16 +01:00
Philipp Kloke ef82897af5 Refactorization: Use std::string::pop_back
Merged from LCppC.
2021-02-17 22:39:29 +01:00
Oliver Stöneberg b7c573bc9b
removed the *_sanitized targets used by fuzz-client from CMake - if you need this to be sanitized use CMAKE_CXX_FLAGS / fixed linking of fuzz-client (#2914) 2020-11-21 07:44:22 +01:00
Daniel Marjamäki 566e74fae0 bump simplecpp (fix hang when systemheader includes itself) 2020-09-14 15:43:43 +02:00
Daniel Marjamäki b5cd823080 Bump simplecpp 2020-09-11 18:28:37 +02:00
Daniel Marjamäki d606eb5ed9 Bump simplecpp 2020-07-03 11:42:58 +02:00
Daniel Marjamäki 8ab305d3c9 Revert "Bump simplecpp"
This reverts commit eec622b515.
2020-07-02 21:31:23 +02:00
Daniel Marjamäki eec622b515 Bump simplecpp 2020-07-02 18:18:30 +02:00
Oliver Stöneberg 1388e9385b
cleaned up setting of compiler options and a few more things in CMake (#2599)
* cleaned up compiler options related code in CMake

* moved cmake_minimum_required() and raised to latest 2.8.x version

* use proper compiler version check / print compiler version

* fixed linking of sanitized builds

* added proper version checks to newer Clang warnings and enabled them / moved tinyxml_objs flags to proper compiler

* disabled -Wdeprecated-declarations for Clang

* compileroptions.cmake: removed unnecessary check for clang++ existence - CMAKE_CXX_COMPILER_ID is determined by CMake

* printInfo.cmake: removed unnecessary message for ANALYZE_ADDRESS - LSAN is part of ASAN and enabled by default

* cleaned up if() comparisons in CMake

* added/adjusted TODOs
2020-04-22 11:04:19 +02:00
Oliver Stöneberg aaffd1f761
some cleanups (#2601)
* exclude the *_sanitized fuzz-client dependencies from all as well

* .gitignore: added CMake output folders and removed a duplicated entry
2020-04-09 09:23:31 +02:00
Oliver Stöneberg 28cd5d7ea2
fixed OSS-Fuzz builds and added CMake targets (#2577)
* fixed compilation of OSS-Fuzz clients

* added preliminary CMake target for fuzz-client - also added *_sanitized targets of dependencies (only available with Clang)

* added oss-fuzz build to Travis CI
2020-03-31 09:33:58 +02:00
jannick0 1cef732e1b bug fix - de-escape double backslashes in file paths of #line directives (#2462)
* bug fix - de-escape double backslashes in file paths of #line directives

From merged PR danmar/simplecpp#187.

* externals/simplecpp/simplecpp.cpp:
  - add static function REPLACEALL which replaces a string FROM to the
    string TO at every occurance in the input string.
  - simplecpp::TokenList::readfile: replace any double backslashes in any
    file path of a #line directive.

* externals/simplecpp/simplecpp.cpp: astyling
2019-12-29 14:01:19 +01:00
Sebastian 95696ead23
Catch preprocessor errors possibly issued during loading files (#2430)
* Also catch preprocessor errors possibly issued during loading files

Currently only errors that are issued during preprocessing are caught.

* Bump simplecpp, implement suggestions

Use return value checking instead of catching an exception for calling
Preprocessor::loadFiles().
Handle new enum value simplecpp::Output::EXPLICIT_INCLUDE_NOT_FOUND
where the corresponding enum is used in Cppcheck.

* Use "noloc" location if an explicit include can not be opened
2019-12-09 19:16:55 +01:00
Rikard Falkeborn e0fe8fa2cd bump simplecpp (#2368) 2019-11-16 18:29:01 +01:00
Rikard Falkeborn 224ae3c326 Bump simplecpp (#2297) 2019-10-26 17:30:04 +02:00
Rikard Falkeborn d27e70db8e bump simplecpp (#2245) 2019-10-08 10:38:22 +02:00
Daniel Marjamäki aabe3a70e1 bump simplecpp 2019-09-25 20:19:26 +02:00
IOBYTE e5220bdf0c make ellipsis ... a single token (#2143)
* make ellipsis ... a single token

Using cppcheck -E to preprocess code with ellipsis produces output that
can't be compiled because ... is split into 3 tokens.

* try to fix addon
2019-09-04 08:07:30 +02:00
Daniel Marjamäki 88dfb1968f bumped simplecpp 2019-07-03 17:03:46 +02:00
Daniel Marjamäki e4c178d5c0 bump simplecpp 2019-05-07 19:15:31 +02:00
Daniel Marjamäki 81b02197e8 bump simplecpp 2019-05-03 18:50:04 +02:00
Daniel Marjamäki 4a8fe3fb23 Revert "bump simplecpp"
This reverts commit 383e1b7cd1.
2019-05-02 06:50:29 +02:00
Daniel Marjamäki 383e1b7cd1 bump simplecpp 2019-05-01 20:36:14 +02:00
Daniel Marjamäki fe10420d23 Bump simplecpp 2019-03-31 07:49:43 +02:00
Daniel Marjamäki 03c2c88d1e bumped simplecpp 2019-03-11 18:18:00 +01:00
Daniel Marjamäki 93194f47a1 bump simplecpp 2019-03-10 08:47:27 +01:00
Daniel Marjamäki 23d4d9abeb bump simplecpp 2019-02-23 08:35:10 +01:00
Daniel Marjamäki 633e8632f5 bump simplecpp 2019-02-06 16:26:59 +01:00
Daniel Marjamäki 590bf97247 bump simplecpp 2018-11-02 16:28:48 +01:00
Daniel Marjamäki f6f4116389 bump simplecpp 2018-10-09 21:17:38 +02:00
PKEuS 86a1b84b0c Fixed handling of macros with known value defined in header file in configuration splitting (#8404)
Added proper unit test for configuration validation to ensure that it actually works when cppcheck is executed
2018-10-08 16:38:47 +02:00
PKEuS 3d860e6f36 Bump simplecpp 2018-05-14 13:00:22 +02:00
Daniel Marjamäki f188ea33c6 bump simplecpp 2018-04-17 08:12:15 +02:00