- enhancement: Deduce type info for "auto" in some simple cases.
- fix: crash when no semicolon or left brace after the keyword "namespace"
This commit is contained in:
parent
adb3d79b60
commit
de23833992
1
NEWS.md
1
NEWS.md
|
@ -11,6 +11,7 @@ Red Panda C++ Version 2.5
|
|||
- enhancement: show completion suggest for "namespace" after "using"
|
||||
- fix: MinGW-w64 gcc displayed as "MinGW GCC"
|
||||
- enhancement: Deduce type info for "auto" in some simple cases.
|
||||
- fix: crash when no semicolon or left brace after the keyword "namespace"
|
||||
|
||||
Red Panda C++ Version 2.4
|
||||
|
||||
|
|
|
@ -2814,7 +2814,7 @@ void CppParser::handleNamespace(KeywordType skipType)
|
|||
|
||||
// find next '{' or ';'
|
||||
mIndex = indexOfNextSemicolonOrLeftBrace(mIndex);
|
||||
if (mTokenizer[mIndex]->text=='{')
|
||||
if (mIndex<mTokenizer.tokenCount() && mTokenizer[mIndex]->text=='{')
|
||||
addSoloScopeLevel(namespaceStatement,startLine);
|
||||
//skip it
|
||||
mIndex++;
|
||||
|
|
|
@ -2640,6 +2640,10 @@ static void setDebugOptions(Settings::PCompilerSet pSet) {
|
|||
}
|
||||
|
||||
bool Settings::CompilerSets::addSets(const QString &folder, const QString& cc_prog) {
|
||||
foreach (const PCompilerSet& set, mList) {
|
||||
if (set->binDirs().contains(folder))
|
||||
return false;
|
||||
}
|
||||
// Default, release profile
|
||||
PCompilerSet baseSet = addSet(folder,cc_prog);
|
||||
if (!baseSet)
|
||||
|
|
Loading…
Reference in New Issue