- 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).
|
- 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
|
||||||
|
|
||||||
|
|
|
@ -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=='(')
|
||||||
|
|
Loading…
Reference in New Issue