[clang-tools-extra] r334033 - [clangd] Fix inverted test again, sigh

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 5 11:00:49 PDT 2018


Author: sammccall
Date: Tue Jun  5 11:00:48 2018
New Revision: 334033

URL: http://llvm.org/viewvc/llvm-project?rev=334033&view=rev
Log:
[clangd] Fix inverted test again, sigh

Modified:
    clang-tools-extra/trunk/clangd/Quality.cpp

Modified: clang-tools-extra/trunk/clangd/Quality.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Quality.cpp?rev=334033&r1=334032&r2=334033&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/Quality.cpp (original)
+++ clang-tools-extra/trunk/clangd/Quality.cpp Tue Jun  5 11:00:48 2018
@@ -69,7 +69,7 @@ raw_ostream &operator<<(raw_ostream &OS,
 
 static SymbolRelevanceSignals::AccessibleScope
 ComputeScope(const NamedDecl &D) {
-  bool InClass = true;
+  bool InClass = false;
   for (const DeclContext *DC = D.getDeclContext(); !DC->isFileContext();
        DC = DC->getParent()) {
     if (DC->isFunctionOrMethod())




More information about the cfe-commits mailing list