aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-12-28 10:01:39 -0800
committerKazu Hirata <kazu@google.com>2021-12-28 10:01:39 -0800
commite6e7bdd6a90ca8ba896fb92f6e0e642d42c84efc (patch)
tree59ea19112287c97da9482c5dda377e0ededc07e2 /clang/lib/Frontend/CompilerInvocation.cpp
parent1e7bd93ff2cc55965e8f31670a459b11e679a4ad (diff)
downloadllvm-e6e7bdd6a90ca8ba896fb92f6e0e642d42c84efc.zip
llvm-e6e7bdd6a90ca8ba896fb92f6e0e642d42c84efc.tar.gz
llvm-e6e7bdd6a90ca8ba896fb92f6e0e642d42c84efc.tar.bz2
Drop unnecessary const from return types (NFC)
Identified with readability-const-return-type.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index b71addd8..7727d70 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -438,7 +438,7 @@ static T extractMaskValue(T KeyPath) {
}(EXTRACTOR(KEYPATH)); \
}
-static const StringRef GetInputKindName(InputKind IK);
+static StringRef GetInputKindName(InputKind IK);
static bool FixupInvocation(CompilerInvocation &Invocation,
DiagnosticsEngine &Diags, const ArgList &Args,
@@ -3291,7 +3291,7 @@ static bool IsInputCompatibleWithStandard(InputKind IK,
}
/// Get language name for given input kind.
-static const StringRef GetInputKindName(InputKind IK) {
+static StringRef GetInputKindName(InputKind IK) {
switch (IK.getLanguage()) {
case Language::C:
return "C";