diff options
| author | 2019-01-27 16:42:12 +0000 | |
|---|---|---|
| committer | 2019-01-27 16:42:12 +0000 | |
| commit | b773203fb58f3ef282fb69c832d8710cab5bc82d (patch) | |
| tree | e75913f147570fbd75169647b144df85b88a038c /gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp | |
| parent | tweak errno in previous (diff) | |
| download | wireguard-openbsd-b773203fb58f3ef282fb69c832d8710cab5bc82d.tar.xz wireguard-openbsd-b773203fb58f3ef282fb69c832d8710cab5bc82d.zip | |
Import LLVM 7.0.1 release including clang, lld and lldb.
Diffstat (limited to 'gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp')
| -rw-r--r-- | gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp b/gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp index 6da0de7edf9..a5d2d1d2472 100644 --- a/gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp +++ b/gnu/llvm/tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp @@ -369,7 +369,7 @@ SyntaxTree::Impl::getRelativeName(const NamedDecl *ND, else if (AST.getLangOpts().CPlusPlus11) if (auto *Tag = dyn_cast<TagDecl>(Context)) ContextPrefix = Tag->getQualifiedNameAsString(); - // Strip the qualifier, if Val refers to somthing in the current scope. + // Strip the qualifier, if Val refers to something in the current scope. // But leave one leading ':' in place, so that we know that this is a // relative path. if (!ContextPrefix.empty() && StringRef(Val).startswith(ContextPrefix)) @@ -741,7 +741,7 @@ public: List.pop(); } // TODO this is here to get a stable output, not a good heuristic - std::sort(Result.begin(), Result.end()); + llvm::sort(Result.begin(), Result.end()); return Result; } int peekMax() const { |
