diff options
| author | Orgad Shaneh <[email protected]> | 2014-02-04 22:23:27 +0200 |
|---|---|---|
| committer | Orgad Shaneh <[email protected]> | 2014-02-24 21:56:23 +0100 |
| commit | 6133920bfe7aa8d8370fdb53f176a1ccdd97273d (patch) | |
| tree | b057ba67607d9785fbc01e4a7b3e8d1da1e26574 /src/libs/cplusplus/pp-engine.cpp | |
| parent | 466eb0b0f8f0a5cb4f1ec28bd63bb0c360e795a5 (diff) | |
Preprocessor: Adjust lines also for multiline C++ comments
Change-Id: I87d6e76be3030e617603209c3a1b8b3c476cf1f6
Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/libs/cplusplus/pp-engine.cpp')
| -rw-r--r-- | src/libs/cplusplus/pp-engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp index 8197b7ef5a4..c17d36555d2 100644 --- a/src/libs/cplusplus/pp-engine.cpp +++ b/src/libs/cplusplus/pp-engine.cpp @@ -1300,7 +1300,7 @@ void Preprocessor::trackExpansionCycles(PPToken *tk) static void adjustForCommentOrStringNewlines(unsigned *currentLine, const PPToken &tk) { - if (tk.is(T_COMMENT) || tk.is(T_DOXY_COMMENT) || tk.isStringLiteral()) + if (tk.isComment() || tk.isStringLiteral()) (*currentLine) += tk.asByteArrayRef().count('\n'); } |
