- fix: __attribute__ is not correctly handled if it is after 'static'.

This commit is contained in:
Roy Qu 2023-10-21 22:19:26 +08:00
parent bd85f91258
commit 9467645bef
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@ Red Panda C++ Version 2.26
- change: Use ctrl+mouseMove event to highlight jumpable symbols (instead of ctrl+tooltip). - change: Use ctrl+mouseMove event to highlight jumpable symbols (instead of ctrl+tooltip).
- enhancement: Auto adjust position of the suggestion popup window. - enhancement: Auto adjust position of the suggestion popup window.
- enhancement: Windows XP support ( by cyano.CN ) - enhancement: Windows XP support ( by cyano.CN )
- fix: __attribute__ is not correctly handled if it is after 'static'.
Red Panda C++ Version 2.25 Red Panda C++ Version 2.25

View File

@ -214,6 +214,11 @@ QString CppTokenizer::getNextToken(TokenType *pTokenType)
} else if (isWord()) { } else if (isWord()) {
countLines(); countLines();
result = getWord(); result = getWord();
if (result == "__attribute__") {
result = "";
if (*mCurrent=='(')
skipPair('(',')');
}
// if (result=="noexcept" || result == "throw") { // if (result=="noexcept" || result == "throw") {
// result=""; // result="";
// if (*mCurrent=='(') // if (*mCurrent=='(')