[clang-tools-extra] 59c2810 - [clangd] Fix printing for Inclusion
Kadir Cetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 7 04:48:54 PDT 2020
Author: Kadir Cetinkaya
Date: 2020-04-07T13:48:00+02:00
New Revision: 59c28103a4a4d05db036157605a52a8075d60082
URL: https://github.com/llvm/llvm-project/commit/59c28103a4a4d05db036157605a52a8075d60082
DIFF: https://github.com/llvm/llvm-project/commit/59c28103a4a4d05db036157605a52a8075d60082.diff
LOG: [clangd] Fix printing for Inclusion
Added:
Modified:
clang-tools-extra/clangd/Headers.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/Headers.cpp b/clang-tools-extra/clangd/Headers.cpp
index e94a768e9eb7..295d6e67477d 100644
--- a/clang-tools-extra/clangd/Headers.cpp
+++ b/clang-tools-extra/clangd/Headers.cpp
@@ -227,7 +227,7 @@ IncludeInserter::insert(llvm::StringRef VerbatimHeader) const {
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Inclusion &Inc) {
return OS << Inc.Written << " = "
- << (Inc.Resolved.empty() ? Inc.Resolved : "[unresolved]") << " at "
+ << (!Inc.Resolved.empty() ? Inc.Resolved : "[unresolved]") << " at "
<< Inc.R;
}
More information about the cfe-commits
mailing list