Rikard Falkeborn
518bb5195c
dmake: Sort header dependencies ( #2182 )
...
Makes it simpler to check diffs, and prevents updates to Makefile due to
changes in header includes.
2019-09-19 09:26:59 +02:00
Rikard Falkeborn
afe05d019c
dmake: Improve dependency detection of external and cli includes ( #2163 )
...
Previously, external files were not searched at all, and dependencies
on header files in cli was not taken into account for test files.
To add dependency of headers in externals, we also need to search for
includes with angular brackets.
2019-09-10 10:32:36 +02:00
versat
8b5191416e
dmake.cpp: Fix typo in warning message
2019-09-05 11:43:13 +02:00
Rikard Falkeborn
5b5d943976
Remove testfiles.pri ( #2106 )
...
qmake is not used to build tests. The only user of testfiles.pri was
removed in 392cda8bce
in december 2015.
2019-08-21 06:51:08 +02:00
Daniel Marjamäki
a17f2a6f05
Compiling/Installing : The CFGDIR parameter was removed. Use FILESDIR instead.
2019-08-17 10:53:07 +02:00
Rikard Falkeborn
f139558d90
Dmake cleanups ( #2077 )
...
* dmake: Refactor object files to separate function
No functional change.
* dmake: Use range for loops
No functional change.
* Add all external cpp files instead of open coding
No functional change.
* Remove duplicate check.h in lib.pri HEADERS
* Add missing newline
No functional change, but the readability of the generated Makefile is
slightly improved.
2019-08-14 20:53:51 +02:00
Rikard Falkeborn
0324bbf63c
dmake: Fix check of last header file in lib.pri ( #2045 )
...
Since the number of test files is larger than the number of lib files,
this only caused an extra harmless '\' being printed after the last
header file in lib.pri. If the number of test files would have been
smaller than the number of lib files, the generated lib.pri would have
been broken.
2019-07-27 09:45:04 +02:00
Sebastian
7d7078f126
Makefile/dmake: Increase stack size to 8M for Cygwin builds to avoid segfaults ( #2001 )
...
* Makefile: Increase stack size to 8M for Cygwin builds to avoid segfaults
See https://github.com/danmar/cppcheck/pull/1988
and https://github.com/danmar/cppcheck/pull/1998
* dmake.cpp: Add parameter to CXXFLAGS for increased stack size in Cygwin
2019-07-16 12:14:18 +02:00
Daniel Marjamäki
1b4485a738
Makefile: Add one more flag 'MATCHCOMPILER=yes'
2019-06-23 13:43:09 +02:00
Ken-Patrick
a83b308300
Fix run-dmake step ( #1894 )
2019-06-16 15:06:28 +02:00
Carlo Marcelo Arenas Belón
bf5c71bdca
sync ( #1835 )
...
* build: remove -Wabi and add -Wundef
gcc >= 8 throws a warning about -Wabi (without a specific ABI version)
being ignored, while -Wundef seems more useful (as shown by the change
in config.h, which was probably an unfortunate typo)
travis.yaml should probably be updated soon, but was left out from this
change as the current images don't yet need it
* lib: unused function in valueflow
refactored out since 8c03be3212
lib/valueflow.cpp:3124:21: warning: unused function 'endTemplateArgument' [-Wunused-function]
* readme: include picojson
* make: also clean exe
2019-05-17 09:31:41 +02:00
Daniel Marjamäki
ece13033b2
dmake: use -isystem for externals to avoid compiler warnings
2019-04-19 14:52:49 +02:00
Daniel Marjamäki
5e88258005
Makefile: Remove reduce target
2019-03-02 12:11:04 +01:00
Daniel Marjamäki
bd7790fd8c
Update copyright year
2019-02-09 07:24:06 +01:00
amai2012
cc4ca7525a
Clean up redundant actions in travis jobs ( #1563 )
...
* Clean up redundant actions in travis jobs.
* Drop validatePlatforms from Makefile target checkcfg
* Print out CPU count. Adjust parameters for parallel jobs to 2 - the current result.
2019-01-05 11:12:32 +01:00
Daniel Marjamäki
42e516582c
Disable shadow warnings when compiling
2018-11-19 09:25:59 +01:00
Armin Müller
acf2035a53
Typos found by running "codespell" ( #1461 )
2018-11-03 07:34:27 +01:00
amai2012
39c2625789
Run check for missing CWE entries on travis.
2018-10-22 13:14:48 +02:00
Christian Franke
f228897641
make: Add uninstall target
2018-10-19 09:49:44 +02:00
amai2012
b6103d15a6
#8711 Run Makefile target validateXML on travis
2018-09-24 14:27:02 +02:00
amai2012
cf8523b198
#8711 Extend XML being generated to validate the XML output format by adding an unmatchedSuppression. Also use proper cppcheck executable to generate them
2018-09-24 13:13:05 +02:00
amai2012
453c663fb0
#8611 Rename xmlV2.rng. Renaming it to cppcheck-errors.rng ( #1278 )
2018-06-06 15:25:09 +02:00
amai2012
ceff09d491
#5178 Supply DTD/(XSD/RNG for cppcheck XML output. Add target to Makefile to create and validate XML from regular run. Update xmlV2.rng accordingly.
2018-05-24 16:12:43 +02:00
amai2012
64f0d31280
#5718 Supply DTD/XSD/RNG for cppcheck XML output - supply rng for current XML output. Add an automatic check on travis against the --errorlist output
2018-05-17 12:46:15 +02:00
alexander
795f244804
Omit test/synthetic from tags file
2018-04-19 22:42:04 +02:00
Daniel Marjamäki
8c082f1b3f
Remove lib/cxx11emu.h
2018-04-09 22:28:41 +02:00
Daniel Marjamäki
7e4dba6a7e
Updated copyright year
2018-03-31 20:59:09 +02:00
Daniel Marjamäki
52fb9d3743
generate_cfg_tests: Added tool that generates test cases from cfg file
2018-03-18 12:50:55 +01:00
amai
0f00259a96
Validate platform files
2018-02-15 20:35:12 +01:00
Daniel Marjamäki
c4caee6b18
Updated copyright year
2018-01-14 15:37:52 +01:00
amai
74d9883260
Use shorter rules for linking the executables
2017-08-22 23:01:18 +02:00
orbitcowboy
7c5d14bf66
Updated dmake: activated validateCFG when 'make checkcfg' is called.
2017-07-29 12:42:43 +02:00
Matthias Krüger
159e420146
dmake: fix SRCDIR=build build.
...
The problem was hardcoded "lib" path which needs to be $(SRCDIR)
2017-06-21 17:59:00 +02:00
Daniel Marjamäki
2665e6e60c
Fix dmake, it now depends on simplecpp::simplifyPath
2017-06-21 15:29:00 +02:00
Ivan Ryabov
170cfc24a2
Make detection of clang++ compiler more robust ( #915 )
...
* Make detection of clang++ compiler more robust
* Updated makefile generator
2017-06-16 12:56:29 +02:00
uburuntu
d41d091c07
ENH: perfomance: seeking of one char is more efficiently
2017-05-27 04:15:54 +02:00
Matthias Krüger
3930f2d6bc
try to fix "make" target (was broken due to missing comment-char).
2017-05-24 00:25:14 +02:00
amai
cea82c4ee9
Add validateCFG target to validate library files against RNG
2017-05-24 00:07:59 +02:00
amai
8fa4a92ce1
Make tags target phony. Add entry to gitignore
2017-05-20 22:27:49 +02:00
tetsuo55
2d24d5ce01
dmake: Add support for mingw64
...
running dmake under mingw64 causes an error
the makefile will have to be recreated
under linux
2017-05-11 10:36:37 +02:00
Matthias Krüger
1e5e32c4a2
testrunner: remove non-gcc-style output format
2017-02-26 21:39:06 +01:00
Daniel Marjamäki
fff8aa8590
dmake: pathmatch was moved from cli to lib
2016-10-02 13:32:39 +02:00
Daniel Marjamäki
e8b6235e23
dmake: pathmatch was moved from cli to lib
2016-10-02 13:15:51 +02:00
Daniel Marjamäki
3605457cbe
CLI: Fix exclude of absolute path. #4399
2016-10-02 12:38:44 +02:00
Matthias Krüger
032d2e5cd1
CXXFLAGS: remove -Winline (ticket #7693 )
...
The debug build (with -Winline) has no optimizations and when setting optimizations for a release builds, CXXFLAGS are overridden.
So we either do a non-optimized debug build (where no inlining takes place which makes -Winline redundant) or do a release build without -Warning flags which means we would never see -O2 and -Winline together.
2016-08-19 11:19:15 +02:00
Daniel Marjamäki
016bcaf9fe
dmake: Disable compiler warnings for external files
2016-07-28 13:54:08 +02:00
Daniel Marjamäki
03d2829fb9
Merge simplecpp branch
2016-07-20 12:21:00 +02:00
Daniel Marjamäki
a87b4368cb
Revert "Preprocessor: Start replacing our Preprocessor code with simplecpp"
...
This reverts commit 9820783b60
.
There was Travis errors I'll need to look more at.
2016-07-07 23:45:42 +02:00
Daniel Marjamäki
9820783b60
Preprocessor: Start replacing our Preprocessor code with simplecpp
2016-07-07 22:58:56 +02:00
Matthias Krüger
9bcb36e0bb
dmake: disable -Wsign-promo
2016-05-07 19:38:40 +02:00