[clang-tools-extra] r362226 - [clangd] Add missing license for rename.cpp, NFC.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Fri May 31 07:38:17 PDT 2019
Author: hokein
Date: Fri May 31 07:38:16 2019
New Revision: 362226
URL: http://llvm.org/viewvc/llvm-project?rev=362226&view=rev
Log:
[clangd] Add missing license for rename.cpp, NFC.
Modified:
clang-tools-extra/trunk/clangd/refactor/Rename.cpp
Modified: clang-tools-extra/trunk/clangd/refactor/Rename.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/refactor/Rename.cpp?rev=362226&r1=362225&r2=362226&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/refactor/Rename.cpp (original)
+++ clang-tools-extra/trunk/clangd/refactor/Rename.cpp Fri May 31 07:38:16 2019
@@ -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::S
// 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()) {
More information about the cfe-commits
mailing list