- fix: __attribute__ is not correctly handled if it is after 'static'.
This commit is contained in:
parent
bd85f91258
commit
9467645bef
1
NEWS.md
1
NEWS.md
|
@ -3,6 +3,7 @@ Red Panda C++ Version 2.26
|
|||
- change: Use ctrl+mouseMove event to highlight jumpable symbols (instead of ctrl+tooltip).
|
||||
- enhancement: Auto adjust position of the suggestion popup window.
|
||||
- enhancement: Windows XP support ( by cyano.CN )
|
||||
- fix: __attribute__ is not correctly handled if it is after 'static'.
|
||||
|
||||
Red Panda C++ Version 2.25
|
||||
|
||||
|
|
|
@ -214,6 +214,11 @@ QString CppTokenizer::getNextToken(TokenType *pTokenType)
|
|||
} else if (isWord()) {
|
||||
countLines();
|
||||
result = getWord();
|
||||
if (result == "__attribute__") {
|
||||
result = "";
|
||||
if (*mCurrent=='(')
|
||||
skipPair('(',')');
|
||||
}
|
||||
// if (result=="noexcept" || result == "throw") {
|
||||
// result="";
|
||||
// if (*mCurrent=='(')
|
||||
|
|
Loading…
Reference in New Issue