summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2019-05-31 14:38:16 +0000
committerHaojian Wu <hokein@google.com>2019-05-31 14:38:16 +0000
commit488c509d457d46f5db81a526bef6590eadb2fc0e (patch)
tree4d302d6e82e0d76be6e8b380aed7621ca12fe0c3
parent54182eb7b0dbc601787a6c5270626b28796beb48 (diff)
downloadbcm5719-llvm-488c509d457d46f5db81a526bef6590eadb2fc0e.tar.gz
bcm5719-llvm-488c509d457d46f5db81a526bef6590eadb2fc0e.zip
[clangd] Add missing license for rename.cpp, NFC.
llvm-svn: 362226
-rw-r--r--clang-tools-extra/clangd/refactor/Rename.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/refactor/Rename.cpp b/clang-tools-extra/clangd/refactor/Rename.cpp
index 46fd19d29f2..8b21e635c95 100644
--- a/clang-tools-extra/clangd/refactor/Rename.cpp
+++ b/clang-tools-extra/clangd/refactor/Rename.cpp
@@ -1,3 +1,11 @@
+//===--- Rename.cpp - Symbol-rename refactorings -----------------*- C++-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
#include "refactor/Rename.h"
#include "clang/Tooling/Refactoring/RefactoringResultConsumer.h"
#include "clang/Tooling/Refactoring/Rename/RenamingAction.h"
@@ -65,7 +73,7 @@ renameWithinFile(ParsedAST &AST, llvm::StringRef File, Position Pos,
// Right now we only support renaming the main file, so we
// drop replacements not for the main file. In the future, we might
// also support rename with wider scope.
- // Rename sometimes returns duplicate edits (which is a bug). A side-effect of
+ // Rename sometimes returns duplicate edits (which is a bug). A side-effect of
// adding them to a single Replacements object is these are deduplicated.
for (const tooling::AtomicChange &Change : ResultCollector.Result->get()) {
for (const auto &Rep : Change.getReplacements()) {
OpenPOWER on IntegriCloud