[clang-tools-extra] 428ac8f - [clangd] Rename QueryDriverDatabase.cpp to SystemIncludeExtractor.cpp

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 7 15:03:13 PST 2022


Author: Nathan Ridge
Date: 2022-11-07T17:58:42-05:00
New Revision: 428ac8f3a0f9572fcff03c2fae62c4ae8420a0df

URL: https://github.com/llvm/llvm-project/commit/428ac8f3a0f9572fcff03c2fae62c4ae8420a0df
DIFF: https://github.com/llvm/llvm-project/commit/428ac8f3a0f9572fcff03c2fae62c4ae8420a0df.diff

LOG: [clangd] Rename QueryDriverDatabase.cpp to SystemIncludeExtractor.cpp

Differential Revision: https://reviews.llvm.org/D137401

Added: 
    clang-tools-extra/clangd/SystemIncludeExtractor.cpp

Modified: 
    clang-tools-extra/clangd/CMakeLists.txt

Removed: 
    clang-tools-extra/clangd/QueryDriverDatabase.cpp


################################################################################
diff  --git a/clang-tools-extra/clangd/CMakeLists.txt b/clang-tools-extra/clangd/CMakeLists.txt
index df8ad666e2da0..dec115a64a59e 100644
--- a/clang-tools-extra/clangd/CMakeLists.txt
+++ b/clang-tools-extra/clangd/CMakeLists.txt
@@ -97,7 +97,7 @@ add_clang_library(clangDaemon
   SemanticHighlighting.cpp
   SemanticSelection.cpp
   SourceCode.cpp
-  QueryDriverDatabase.cpp
+  SystemIncludeExtractor.cpp
   TidyProvider.cpp
   TUScheduler.cpp
   URI.cpp

diff  --git a/clang-tools-extra/clangd/QueryDriverDatabase.cpp b/clang-tools-extra/clangd/SystemIncludeExtractor.cpp
similarity index 98%
rename from clang-tools-extra/clangd/QueryDriverDatabase.cpp
rename to clang-tools-extra/clangd/SystemIncludeExtractor.cpp
index c5c5c84b05fbe..7cfbd3dbf7318 100644
--- a/clang-tools-extra/clangd/QueryDriverDatabase.cpp
+++ b/clang-tools-extra/clangd/SystemIncludeExtractor.cpp
@@ -1,4 +1,4 @@
-//===--- QueryDriverDatabase.cpp ---------------------------------*- C++-*-===//
+//===--- SystemIncludeExtractor.cpp ------------------------------*- C++-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -344,7 +344,7 @@ class SystemIncludeExtractor {
 
     llvm::SmallString<128> Driver(Cmd.CommandLine.front());
     if (llvm::any_of(Driver,
-                       [](char C) { return llvm::sys::path::is_separator(C); }))
+                     [](char C) { return llvm::sys::path::is_separator(C); }))
       // Driver is a not a single executable name but instead a path (either
       // relative or absolute).
       llvm::sys::fs::make_absolute(Cmd.Directory, Driver);


        


More information about the cfe-commits mailing list