Commit Graph

184 Commits

Author SHA1 Message Date
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
warmsocks a56bc006b7 Fixed a typo in lib/checkother.cpp. Corrected spelling errors found by codespell. (#2170) 2019-09-11 19:21:38 +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 1f995fd536 Try to fix gui compile error on Travis 2019-04-20 11:26:29 +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 5f5c33baf2 Json: Use simple json library picojson to read compile databases 2019-01-05 17:45:07 +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
Daniel Marjamäki 49a3f32f80 bump simplecpp 2018-04-09 10:47:41 +02:00
Daniel Marjamäki 1f418c1675 bump simplecpp 2018-04-01 09:06:13 +02:00
Daniel Marjamäki 57b96d3aaa update simplecpp 2018-03-15 21:34:58 +01:00
Dmitry-Me 6ceb4b057b Updated TinyXML 2018-03-13 23:09:57 +03:00
Daniel Marjamäki ae7fbb50c7 bump simplecpp 2018-02-14 22:14:42 +01:00
Daniel Marjamäki bf76183eea bump simplecpp 2018-02-11 15:48:37 +01:00
Daniel Marjamäki b4fbcb0dc8 bump simplecpp 2018-01-14 15:18:21 +01:00
Daniel Marjamäki d488467664 Update simplecpp 2018-01-13 18:08:23 +01:00
PKEuS d76c5c525c Updated TinyXML 2018-01-08 20:26:34 +01:00
Daniel Marjamäki 5c7cf584ef bump simplecpp 2017-09-12 22:42:10 +02:00
Daniel Marjamäki e7f469c4ba update simplecpp 2017-09-08 23:20:39 +02:00
Dmitry-Me df5757b2cf Update simplecpp 2017-09-06 00:19:56 +03:00
Daniel Marjamäki 468d4923e4 bump simplecpp 2017-08-21 18:43:42 +02:00
Daniel Marjamäki 31ef266036 bump simplecpp 2017-08-13 13:59:09 +02:00
Dmitry-Me c9a63ca606 Updated TinyXML 2017-08-11 17:56:41 +03:00
Daniel Marjamäki c75b90487e bump simplecpp 2017-06-23 20:09:26 +02:00
Daniel Marjamäki c4c3802c54 bump simplecpp 2017-06-21 14:27:08 +02:00
Daniel Marjamäki 18c97c5456 bump simplecpp 2017-06-21 12:09:50 +02:00
Daniel Marjamäki e8d1e4b19d bump simplecpp 2017-06-08 15:55:12 +02:00
Daniel Marjamäki 51858ecc96 bump simplecpp 2017-05-28 15:23:15 +02:00
Daniel Marjamäki a1081f961c Bump simplecpp 2017-05-26 16:45:07 +02:00
Daniel Marjamäki d96cabc7e5 bump simplecpp 2017-05-19 10:01:12 +02:00
Daniel Marjamäki 711e6f704a Updated simplecpp 2017-05-18 21:40:47 +02:00
PKEuS b86a39d38a Updated TinyXML and simplecpp 2016-12-29 11:28:25 +01:00
PKEuS 75528adea0 Updated simplecpp to 95be502385518402ee61830be2ce3cd0ea02eee2 2016-12-06 14:10:57 +01:00
Daniel Marjamäki 6086165403 bump simplecpp to rev c70bae00a9b92eca75767e547fad972cf011945f 2016-12-04 12:10:28 +01:00
Daniel Marjamäki b04f6fb359 bump simplecpp to rev d1c995c03515d289c7aa7246a74d666fd012c4eb 2016-11-10 20:04:05 +01:00
Daniel Marjamäki 87b08fd405 bump simplecpp to rev a6124eec2bdab9eb6c06c87e024a94709ce6e9ee 2016-11-06 12:29:13 +01:00
PKEuS b9f11f246d Bump simplecpp (fixes #7742) 2016-10-05 21:35:40 +02:00
Daniel Marjamäki 3bdbce0bde bump simplecpp 2917a13fbda2df9742d5f45d33f40f58217b6708 2016-09-11 20:27:57 +02:00
Daniel Marjamäki b97bdb5300 bump simplecpp to rev b50ced8ac14f8debab9e85e78036f881ff2b3965 2016-09-03 12:29:45 +02:00
Daniel Marjamäki 1484ceeffb bump simplecpp to rev c49c716dfc6abc0ee23234fa413a69a08e1dc4e8 2016-08-31 11:25:03 +02:00
Daniel Marjamäki 7b253e77fc bump simplecpp to 1a3a3e9 2016-08-27 15:09:18 +02:00
Daniel Marjamäki 9c27211bb6 bump simplecpp to 403708c 2016-08-24 20:27:29 +02:00
Daniel Marjamäki 9968b61db3 simplecpp: Try to fix VS2010 compiler error 2016-08-21 17:19:00 +02:00
Daniel Marjamäki 863efda53c bump simplecpp 2016-08-21 17:08:40 +02:00
Daniel Marjamäki 6d6dc99c0e bump simplecpp 2016-08-17 21:16:29 +02:00
Daniel Marjamäki d220573fa5 bump simplecpp 2016-08-11 19:00:35 +02:00
Frank Zingsheim 47c063e13f Fixed #7660 (cmake build does not handle simplecpp) 2016-08-06 18:21:54 +02:00
Daniel Marjamäki 3e509fb561 bump simplecpp (fixed unicode problem) 2016-08-06 15:50:40 +02:00
Daniel Marjamäki 0ae163db69 bump simplecpp (utf-8 handling, fix problem with multiline non-functionLike macro where replacement list starts with '(') 2016-08-06 14:56:07 +02:00
Daniel Marjamäki d1406d51e5 bump simplecpp (fixing problem with newlines in macro calls) 2016-08-06 13:01:39 +02:00
Daniel Marjamäki f69f7190a0 bump simplecpp (handling #define with multiline comments) 2016-08-06 11:38:20 +02:00
Daniel Marjamäki eedf36e482 bump simplecpp 2016-08-06 08:41:19 +02:00
Daniel Marjamäki cbfeae0ff7 bump simplecpp 2016-08-04 22:53:10 +02:00
Daniel Marjamäki efe8e261dc bump simplecpp 2016-07-31 20:48:55 +02:00
Daniel Marjamäki b6246ecc55 bump simplecpp and update Preprocessor to handle new simplecpp::Output enum constants 2016-07-31 12:10:30 +02:00
Daniel Marjamäki c985c39018 bump simplecpp 2016-07-30 10:37:55 +02:00
Daniel Marjamäki ab59a6e19d bump simplecpp 2016-07-29 20:54:11 +02:00
Daniel Marjamäki 30354ee026 bump simplecpp 2016-07-29 13:05:35 +02:00
Daniel Marjamäki 6e140bb2e3 bump simplecpp 2016-07-29 08:46:38 +02:00
Daniel Marjamäki ef694e9ca5 bump simplecpp 2016-07-28 09:26:23 +02:00
Daniel Marjamäki dd766d477d try to fix memleak in simplecpp 2016-07-25 21:33:06 +02:00
Daniel Marjamäki e4ebbddd0f bump simplecpp 2016-07-25 09:13:59 +02:00
Daniel Marjamäki 161bb50e0c bump simplecpp 2016-07-24 11:36:02 +02:00
Daniel Marjamäki fee2f46efe bump simplecpp 2016-07-24 09:59:57 +02:00
Daniel Marjamäki 2bf2d1bd2a bump simplecpp 2016-07-24 08:51:35 +02:00
Daniel Marjamäki 9b60b36943 bump simplecpp 2016-07-24 08:22:49 +02:00
Daniel Marjamäki 2609d11e1d bump simplecpp 2016-07-23 18:04:23 +02:00
Daniel Marjamäki 88d1911538 bump simplecpp 2016-07-23 16:26:11 +02:00
Daniel Marjamäki f30816c145 bump simplecpp 2016-07-23 09:26:06 +02:00
Daniel Marjamäki 175abaa34d bump simplecpp 2016-07-22 17:54:16 +02:00
Daniel Marjamäki 1b6ae0de8f bump simplecpp 2016-07-21 21:04:54 +02:00
PKEuS 12e3cf584c Visual Studio solution:
- Fixed include paths
- Export simplecpp to cppcheck-core.dll
- Added /Zc:rvalueCast
2016-07-21 20:38:58 +02:00
Daniel Marjamäki 99307846cf Preprocessor: simplecpp optimisations 2016-07-21 19:42:26 +02:00
Daniel Marjamäki 6d10b50434 bump simplecpp 2016-07-21 18:58:11 +02:00
Daniel Marjamäki 4b1f79f243 bump simplecpp 2016-07-21 15:59:59 +02:00
Daniel Marjamäki 62f9bf097b Revert "bump simplecpp"
This reverts commit 540066318c.
2016-07-21 15:51:26 +02:00
Daniel Marjamäki 540066318c bump simplecpp 2016-07-21 15:49:48 +02:00
Daniel Marjamäki 0cf4b82386 try to fix cygwin compile error
[ci skip]
2016-07-21 15:13:27 +02:00
Daniel Marjamäki 6bcc08e6df bump simplecpp 2016-07-21 15:05:29 +02:00
Daniel Marjamäki b2f1b95e38 Bump simplecpp. Preprocessor: Warn about missing includes 2016-07-21 12:47:00 +02:00
Daniel Marjamäki 7383410d32 try to fix travis 2016-07-21 08:04:32 +02:00
Daniel Marjamäki e16f0e500c Preprocessor: Parse comments and then remove them 2016-07-21 07:48:17 +02:00