62a9d5b655
Fix build
2020-03-20 18:07:56 +01:00
cd5af6a12d
do it in c++
2020-03-20 18:07:56 +01:00
3cdcba2299
Fix file name for token manager error
2020-03-20 18:07:56 +01:00
2620fc60be
[cpp] License headers
2020-03-19 15:38:39 +01:00
c4ec36b2b6
Port cpp module
2020-03-17 17:23:29 +01:00
903383d7cf
Merge branch 'master' into 7.0.x
2020-03-17 15:14:46 +01:00
138c0e3e86
Deprecate tokManagers for more module
2020-03-17 15:08:58 +01:00
8c076bd657
Checkstyle
2020-01-25 00:15:37 +01:00
35da350007
Merge branch '7.0.x' into master-ant-script
2020-01-24 23:48:35 +01:00
ec1eb208eb
Merge branch 'master' into 7.0.x
2020-01-24 23:48:22 +01:00
d90d5d267c
Remove trailing whitespace everywhere
2020-01-24 23:40:06 +01:00
925944289d
Merge branch '7.0.x' into master-ant-script
2020-01-24 20:15:16 +01:00
b02ab00e87
Merge remote-tracking branch 'origin/master' into pmd/7.0.x
2020-01-24 19:18:17 +01:00
5feca7fd93
Exclude generated AST*.java files from internalization
2020-01-24 16:19:24 +01:00
60e97d0ec8
Deprecate javacc generated code
2020-01-22 17:19:29 +01:00
2c670339d8
Deprecate CharStream and impls
2020-01-22 17:09:06 +01:00
4552c04a74
Simplify
2020-01-13 01:49:33 +01:00
2d280d0fb0
Make constants file
2020-01-11 04:47:40 +01:00
efc3becc01
Checkout wrapper script, pmd-core, pmd-modelica
2020-01-10 22:57:47 +01:00
6a2c87cd94
Merge branch 'master' into 7.0.x
2019-10-07 16:46:28 +02:00
1fe9c59212
Remove cpp lang
2019-09-24 06:15:34 +02:00
395e3453cb
dogfood: Upgrade to PMD 6.17.0 and fix CloseResource issues
2019-09-16 20:03:12 +02:00
5343a7674b
Merge branch 'master' into 7.0.x
...
Fix conflicts with Apex CC category properties
2019-05-18 16:13:43 +02:00
0708f69627
Merge branch 'master' into cpp_raw_string_literals
2019-05-13 14:37:16 +02:00
5f24c07a83
Rewrote unit tests for C++ raw string literals.
2019-05-13 14:31:10 +02:00
44ca6d307e
Improve unit test
2019-05-12 19:25:08 +02:00
b4821131ea
Added unit tests for C++ raw literals.
...
There was already an existing unit test for issue #1559 . This unit test broke with this change, because the code it's attempting to tokenize is now valid. This test was slightly modified to still give an error, and a new test was added to verify that the code is now correctly tokenized, even in a more difficult situation.
2019-05-10 15:45:08 +02:00
6d828833c0
Added unit test for C++14 digit separators.
2019-05-10 14:32:36 +02:00
6d84530d52
Merge branch 'master' into 7.0.x
2019-02-18 19:32:55 +01:00
89c8f47b2b
Move JavaCCTokenizer to internal package
2019-01-26 19:19:46 +01:00
08b7dd49dd
[core] Add a generic JavaCCTokenizer for CPD
2019-01-26 11:24:32 +01:00
a79d4aeb4f
Fix asserts
2019-01-20 11:47:59 +01:00
a8e1364072
[cpp] CPD: Lexical error in file (no file name provided)
...
Fixes #1559
2019-01-20 10:18:52 +01:00
12b647c548
Merge branch 'master' into 7.0.x
...
Conflicts:
pmd-apex-jorje/pom.xml
pmd-apex/pom.xml
pmd-core/pom.xml
pmd-core/src/main/java/net/sourceforge/pmd/lang/LanguageVersionHandler.java
pmd-core/src/main/java/net/sourceforge/pmd/util/designer/Designer.java
pmd-cpp/pom.xml
pmd-cpp/src/main/java/net/sourceforge/pmd/lang/cpp/CppHandler.java
pmd-cs/pom.xml
pmd-dist/pom.xml
pmd-doc/pom.xml
pmd-fortran/pom.xml
pmd-go/pom.xml
pmd-groovy/pom.xml
pmd-java/pom.xml
pmd-java8/pom.xml
pmd-javascript/pom.xml
pmd-jsp/pom.xml
pmd-kotlin/pom.xml
pmd-lang-test/pom.xml
pmd-matlab/pom.xml
pmd-matlab/src/main/java/net/sourceforge/pmd/lang/matlab/MatlabHandler.java
pmd-objectivec/pom.xml
pmd-objectivec/src/main/java/net/sourceforge/pmd/lang/objectivec/ObjectiveCHandler.java
pmd-perl/pom.xml
pmd-php/pom.xml
pmd-plsql/pom.xml
pmd-python/pom.xml
pmd-python/src/main/java/net/sourceforge/pmd/lang/python/PythonHandler.java
pmd-ruby/pom.xml
pmd-scala/pom.xml
pmd-swift/pom.xml
pmd-test/pom.xml
pmd-ui/pom.xml
pmd-visualforce/pom.xml
pmd-vm/pom.xml
pmd-xml/pom.xml
pom.xml
2018-12-13 18:53:10 +01:00
10e27ca3c0
Deprecate PMD LanguageModule for languages, that only support CPD
2018-11-26 13:55:35 +01:00
5eb1d23a38
Create system to declare processing stages in an extensible fashion
2018-11-02 07:39:16 +01:00
377baf7caf
Replacing IOUtils.closeQuietly(foo) with try-with-resources statements
2018-10-19 14:23:51 -05:00
cba4e87acd
Replacing deprecated IO methods with ones that specify a charset
...
Standardizing with StandardCharsets.UTF_8, given that it was used in
several places of code already, and it provides compile-time checking
(as opposed to "UTF-8")
2018-10-12 17:25:08 -05:00
888824d24a
Fix NullPointerException in CPPTokenizer:99
...
Due to `skipBlocks = true` and `skipBlocksStart` being uninitialized in `CPPTokenizer`, `maybeSkipBlocks` would always throw a NullPointerException as it is assuming that `setProperties` is always called after the constructor.
Changed `CPPLanguage` to always invoke `setProperties`, similarly to `CsLanguage`.
This only happens in programmatic invocations.
2018-07-29 09:11:15 +01:00
5a7bbe19a2
dogfood: fix missing override
...
Note: the rule is disabled for pmd-xml, refs #1074
2018-06-16 17:48:36 +02:00
47e345945e
[cpp] Allow CPD suppressions with comments
2018-04-14 22:33:37 -03:00
91b8a22b42
Update GenericToken specialToken method to obtain only comment tokens
2017-10-28 14:42:44 -03:00
e8fdbdbca4
Update GenericToken interface to expose directly region methods
2017-10-28 14:42:44 -03:00
f29e3f0408
Change ant tasks over (CPP) Token class
2017-10-28 14:42:44 -03:00
3d9511a0e5
[doc] Remove old maven site
2017-08-15 14:31:03 +02:00
e5ddad3c3b
Remove pushed .gitignored files
...
These files were already at the repository
but they should have been ignored
2017-07-27 18:31:20 -03:00
ead8d964c5
[cpp] Undo changes to String literals in grammar, it's not needed anymore
...
Such slightly illegal char escape sequences can still be parsed now.
2017-07-08 11:48:06 +02:00
5bcf30a2a4
[cpp] Add unit test to assert begin/end of Tokens with continuation
2017-07-08 11:32:54 +02:00
ec631f3993
[cpp] Don't skip the continuation character in the grammar anymore
...
Since we now have a CppCharStream, we can remove the changes
introduced for #431
2017-07-07 23:11:27 +02:00
dbc2d02895
[cpp] Add custom CppCharStream for line continuation support
...
Fixes #448
2017-07-07 22:46:21 +02:00