forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.3'
Conflicts: src/plugins/cppeditor/cppdocumentationcommenthelper.cpp Change-Id: I2cf25eba1de149765a6c44ad354d606ce9de512d
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
isEmpty(LLVM_INSTALL_DIR):LLVM_INSTALL_DIR=$$(LLVM_INSTALL_DIR)
|
||||
LLVM_INSTALL_DIR ~= s,\\\\,/,g
|
||||
LLVM_INSTALL_DIR = $$clean_path($$LLVM_INSTALL_DIR)
|
||||
|
||||
DEFINES += CLANG_COMPLETION
|
||||
DEFINES += CLANG_HIGHLIGHTING
|
||||
|
||||
@@ -154,6 +154,12 @@ QList<Diagnostic> SemanticMarker::diagnostics() const
|
||||
const unsigned size = qMin(ATTACHED_NOTES_LIMIT, numChildren);
|
||||
for (unsigned di = 0; di < size; ++di) {
|
||||
ScopedCXDiagnostic child(clang_getDiagnosticInSet(cxChildren, di));
|
||||
|
||||
const Diagnostic::Severity severity
|
||||
= static_cast<Diagnostic::Severity>(clang_getDiagnosticSeverity(child));
|
||||
if (severity == Diagnostic::Ignored || severity == Diagnostic::Note)
|
||||
continue;
|
||||
|
||||
spelling.append(QLatin1String("\n "));
|
||||
spelling.append(Internal::getQString(clang_getDiagnosticSpelling(child)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user