Author: nridge Date: Thu May 30 16:54:43 2019 New Revision: 362176 URL: http://llvm.org/viewvc/llvm-project?rev=362176&view=rev Log: [clangd] clang-format SymbolCollector.cpp
Modified: clang-tools-extra/trunk/clangd/index/SymbolCollector.cpp Modified: clang-tools-extra/trunk/clangd/index/SymbolCollector.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/index/SymbolCollector.cpp?rev=362176&r1=362175&r2=362176&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/index/SymbolCollector.cpp (original) +++ clang-tools-extra/trunk/clangd/index/SymbolCollector.cpp Thu May 30 16:54:43 2019 @@ -416,8 +416,7 @@ bool SymbolCollector::handleMacroOccuren return true; } -void SymbolCollector::setIncludeLocation(const Symbol &S, - SourceLocation Loc) { +void SymbolCollector::setIncludeLocation(const Symbol &S, SourceLocation Loc) { if (Opts.CollectIncludePath) if (shouldCollectIncludePath(S.SymInfo.Kind)) // Use the expansion location to get the #include header since this is @@ -681,7 +680,7 @@ static bool isErrorAboutInclude(llvm::St if (!Line.consume_front("#")) return false; Line = Line.ltrim(); - if (! Line.startswith("error")) + if (!Line.startswith("error")) return false; return Line.contains_lower("includ"); // Matches "include" or "including". } @@ -689,7 +688,7 @@ static bool isErrorAboutInclude(llvm::St bool SymbolCollector::isDontIncludeMeHeader(llvm::StringRef Content) { llvm::StringRef Line; // Only sniff up to 100 lines or 10KB. - Content = Content.take_front(100*100); + Content = Content.take_front(100 * 100); for (unsigned I = 0; I < 100 && !Content.empty(); ++I) { std::tie(Line, Content) = Content.split('\n'); if (isIf(Line) && isErrorAboutInclude(Content.split('\n').first)) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits