[clang-tools-extra] 7c69476 - [clangd] Drop unnecessary const from return types (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 13 12:56:00 PDT 2022


Author: Kazu Hirata
Date: 2022-08-13T12:55:44-07:00
New Revision: 7c6947656496cb66f592e4e556a2f1fa40324b76

URL: https://github.com/llvm/llvm-project/commit/7c6947656496cb66f592e4e556a2f1fa40324b76
DIFF: https://github.com/llvm/llvm-project/commit/7c6947656496cb66f592e4e556a2f1fa40324b76.diff

LOG: [clangd] Drop unnecessary const from return types (NFC)

Identified with readability-const-return-type.

Added: 
    

Modified: 
    clang-tools-extra/clangd/CompileCommands.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/CompileCommands.cpp b/clang-tools-extra/clangd/CompileCommands.cpp
index 12aa9dacc2dfe..16e70d36640df 100644
--- a/clang-tools-extra/clangd/CompileCommands.cpp
+++ b/clang-tools-extra/clangd/CompileCommands.cpp
@@ -118,7 +118,7 @@ std::string detectClangPath() {
 
 // On mac, /usr/bin/clang sets SDKROOT and then invokes the real clang.
 // The effect of this is to set -isysroot correctly. We do the same.
-const llvm::Optional<std::string> detectSysroot() {
+llvm::Optional<std::string> detectSysroot() {
 #ifndef __APPLE__
   return llvm::None;
 #endif


        


More information about the cfe-commits mailing list