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
Albert ARIBAUD (3ADEV)
38e70dfb74
Preprocessor directives for addons
...
This patch augments the XML dumps with a 'directivelist'
subnode which lists all raw preprocessor directives met
while reading the source code in each configuration.
Also, the addons/cppcheckdata.py file has been extended
to give easy access to the list of directives and to
provide Python support for the --template (or short -t)
option.
Finally, an new addon, addons/y2038/y2038.py, is created
to detect when a glibc symbol might be Y2038-sensitive,
based on whether and how _TIME_BITS and _USE_TIME_BITS64
are defined when meeting the symbol.
2016-01-15 12:36:35 +01:00
Aleksandr Pikalev
e92bbf6481
Fixed #7275 - Make GUI tests buildable
...
* Use -std=c++11 flag for gcc and clang
* Use $$PWD variable in qmake files to have correct paths
* Change tokenizer.simplifyTokenList() to tokenizer.simplifyTokenList2()
* Add build-generated files to .gitignore
* Link libpcre only if rules are enabled
2016-01-08 15:21:36 +01:00
Martin Ettl
7cb27d91c4
dmake: Added -Wno-multichar flag.
2016-01-08 11:40:54 +01:00
Lauri Nurmi
996c9244d8
Update copyright year to 2007-2016.
2016-01-01 15:34:45 +02:00
Daniel Marjamäki
0f9d90d2be
Changed Copyrights. Removed my name.
2015-11-18 20:04:50 +01:00
Alexander Mai
65666a1ba4
Makefile: explicit list directories which should be used with ctags. Run astyle.
2015-11-15 19:03:18 +01:00
Simon Martin
14d2830e49
Restore build on OSX, where make defines CXX as "c++" by default.
2015-11-14 07:53:34 +01:00
orbitcowboy
ab90a7eb49
Fixed broken HAVE_RULE support. Updated Makefile. Added override keyword when HAVE_RULES is set.
2015-11-13 11:38:06 +01:00
Matthias Krüger
11915f84e2
dmake: force-add -std=c++0x if we compile with g++ or clang++
2015-11-10 21:07:06 +01:00
Alexander Mai
ab296fa93f
7111 segmentation fault (invalid code) in Tokenizer::simplifyRedundantParentheses
2015-11-08 13:45:55 +01:00
Alexander Mai
445907d930
Makefile: Move -std=c++0x to CXXFLAGS to allow using other compilers
2015-11-08 12:52:56 +01:00
Matthias Krüger
73b088a6dd
dmake: don't compile clang build with -D_GLIBCXX_DEBUG since it breaks the build.
2015-10-05 09:50:18 +02:00
Alexander Mai
0d7d1e8350
Add 'run-dmake' as PHONY target to Makefile to avoid linking dmake always
2015-09-05 17:12:15 +02:00
Dmitry Marakasov
3bf737acbd
Make DB2MAN overridable
...
On different systems it may point to different locations, e.g. FreeBSD uses ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
2015-08-17 19:31:08 +03:00
Daniel Marjamäki
856d496c71
fix dmake
2015-07-23 15:02:32 +02:00
PKEuS
91c7361034
Fixed dmake and travis build
2015-07-23 14:53:18 +02:00
Daniel Marjamäki
678d755ce5
disable -Woverloaded-virtual warnings to avoid a few FPs
2015-06-30 20:38:15 +02:00
Daniel Marjamäki
42e82eda96
dmake: suppress Wsign-compare warnings in release builds
2015-05-02 10:29:52 +02:00
Daniel Marjamäki
066b24dc9c
dmake: disable -Wconversion to avoid false positives when compiling
2015-04-15 11:32:52 +02:00
Alexander Mai
b5f0eec44a
#6559 Regression/ false positive: Return value of allocation function OpenFile is not stored. Add required definitions to windows.cfg, include afx_msg. Add test file test/cfg/windows.cpp to check windows configuration. Fix for gnu.cfg. FileLister now features a non-recursive mode.
2015-03-05 06:48:44 +01:00
Matthias Krüger
e56671101e
tests: add a script which runs test/cfg tests.
...
add new make target (checkcfg) which builds cppcheck and executes the script
make travis run checkcfg
2015-01-27 19:46:52 +01:00
Thomas Jarosch
965775423b
Remove useless forward declarations
...
Instead move the 'static' keyword to the function implementation.
2015-01-08 23:58:00 +01:00
Daniel Marjamäki
ff11ba9847
Updated copyright year to 2015
2015-01-03 12:14:58 +01:00
Gianfranco Costamagna
3eafb2b5c4
Makefile: Fix DESTDIR handling
2014-09-25 18:50:48 +02:00
orbitcowboy
5c2ed8450e
Revert my previous fix 28763fa020
and suppress gcc false positive warnings.
2014-06-13 15:46:43 +02:00
Alexander Mai
16aa891da2
#5798 cfg files are not installed to CFGDIR. Extend patch to update dmake.cpp. Also fix some g++ compiler warnings
2014-05-17 11:05:42 +02:00
Matthias Krüger
52ba857f8d
dmake: make clean: also remove objects files inside tools/ (dmake.o, reduce.o)
2014-05-14 13:20:24 +02:00
Matthias Krüger
f138bf004b
dmake: make clean: remove dmake binary as well.
2014-05-09 08:45:25 +02:00
Alexander Mai
417a916ece
Use CXXFLAGS upon linking dmake for consistency
2014-05-04 20:52:54 +02:00
Daniel Marjamäki
636a15ac55
Doublefree: Fixed FP when exit() is called
2014-05-04 12:02:55 +02:00
amai
a5aac3b551
Add missing dependencies for dmake
2014-05-03 20:05:58 +02:00
amai
3bdfad0b73
reduce and dmake now use existing object files as dependencies whenever possible. Fix compilation for reduce on cygwin.
2014-05-03 18:54:48 +02:00
Alexander Mai
9e9bc1e457
Since reduce shares object files with cppcheck it should use the same compiler and linker flags
2014-04-27 18:56:30 +02:00
Alexander Mai
290f0ef022
#5644 Compilation failure on Cygwin - related to tinyxml2 (#undefine __STRICT_ANSI__ on cygwin). Patch by ir0nh34d
2014-04-24 22:22:43 +02:00
Daniel Marjamäki
ea016d4d73
dmake: include lib/cxx11emu.h in release builds also
2014-04-20 12:30:05 +02:00
Alexander Mai
9ac83d7624
reduce is linking against LIBS as well, to keep build scripts e.g. on travis working
2014-04-11 23:24:47 +02:00
Alexander Mai
fb13c56ef0
Makefile: reduce now also depends on LIBOBJ: command not found
2014-04-11 22:27:29 +02:00
Matthias Krüger
4481015bdc
dmake: "make dmake" now also runs the binary after compilation.
2014-04-03 16:41:58 +02:00
Daniel Marjamäki
22c4d45ca0
astyle formatting
2014-03-31 03:06:57 +02:00
Alexander Mai
0242a3c188
-rdynamic cannot be used on mingw
2014-03-30 20:50:03 +02:00
Alexander Mai
29165f3e5f
Add -rdynamic to the linker flags to allow obtaining a bracktrace
2014-03-21 22:33:07 +01:00
Matthias Krüger
c108321329
dmake: when building cppcheck. do not include "externals" dir, there are no files in there (only the tinyxml dir which is already handled via -Iexternals/tinyxml).
2014-03-03 12:09:21 +01:00
Lauri Nurmi
91340d4043
Emulate the C++11 'nullptr' and 'static_assert'
2014-02-15 07:52:17 +01:00
Daniel Marjamäki
fd3a8a2a18
Update copyright
2014-02-15 07:45:39 +01:00
Daniel Marjamäki
a7146916b1
Makefile: added -Wno-sign-compare. I don't like this warning
2014-01-18 09:51:48 +01:00
Ryan Pavlik
065db3d9f6
Add a rule to the cli makefile to actually build TinyXML2
2014-01-17 15:52:05 -06:00
Daniel Marjamäki
424675982a
dmake: use -std=c++0x instead of -std=c++11 as it's supported by earlier gcc
2014-01-12 15:38:51 +01:00
Daniel Marjamäki
50c8075b15
dmake: use -std=c++11 even if CXXFLAGS is redefined
2014-01-12 13:47:53 +01:00
Daniel Marjamäki
4224f873fd
dmake: added -std=c++11 flag
2014-01-12 13:14:46 +01:00
Daniel Marjamäki
9e0d7d86e9
dmake: Improved handling of CFGDIR
2013-12-28 12:15:08 +01:00
Daniel Marjamäki
d3a848f2e6
Makefile: Added optional CFGDIR parameter that allows user to specify where Cppcheck will look for cfg files.
2013-12-26 18:41:51 +01:00
Daniel Marjamäki
ee325008c4
dmake: install htmlreport
2013-10-12 12:26:27 +02:00
Daniel Marjamäki
d41e0f82cf
reduce: Fix compilation problems
2013-08-17 19:20:47 +02:00
Daniel Marjamäki
8ba14edb51
dmake: fixed lib.pri for gui (tinyxml)
2013-07-08 21:56:09 +02:00
Daniel Marjamäki
d96fb577cd
CLI: Added --environment flag
2013-07-02 07:18:19 +02:00
Andreas Bießmann
90a6472af9
dmake: fix for local includes
...
When building cppcheck we may pull in conflicting global definitions before
local ones, rearrange include order to prevent this.
Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
2013-06-03 19:45:29 +02:00
Daniel Marjamäki
e1fd003e2d
makefile: make it possible to turn on matchcompiler verifications with 'VERIFY=1'
2013-05-15 13:04:19 +02:00
Daniel Marjamäki
c07576e07e
dmake: generating unix makefile from windows. Ticket: #3887
...
When you commit the generated Makefile from windows you must probably be careful about the line endings.
2013-02-24 03:30:58 -08:00
Stefan Naewe
26ddf07366
tools/dmake: update with MINGW32 support
...
Signed-off-by: Stefan Naewe <stefan.naewe@googlemail.com>
2013-02-08 12:15:41 +01:00
Thomas Jarosch
241d23ba8e
Remove reduce tool in 'make clean'
2013-01-03 21:59:28 +01:00
Daniel Marjamäki
28d5ad9d21
dmake: fixed reduce compilation
2013-01-02 15:36:17 +01:00
Daniel Marjamäki
7f2d9cb7eb
dmake: fixed compilation of reduce
2013-01-02 14:43:31 +01:00
Daniel Marjamäki
9877b77291
dmake: use 'make reduce' to compile the reduce program
2013-01-02 13:30:06 +01:00
Reijo Tomperi
5d5f7085bf
Updating year 2012 -> 2013 to .cpp and .h files and man page.
2013-01-01 18:29:08 +02:00
Marc-Antoine Perennou
cd9782472f
build: rename LIBDIR to SRCDIR
...
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2012-12-11 09:30:37 +01:00