Skip to content

Commit 43d8fd3

Browse files
committedAug 1, 2017
[Tooling] Add LLVM_NODISCARD to Replacements::merge
Summary: This patch adds LLVM_NODISCARD to Replacements::merge. I've hit this several times already. Reviewers: ioeric Reviewed By: ioeric Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D36149 llvm-svn: 309689
1 parent 2d23da0 commit 43d8fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎clang/include/clang/Tooling/Core/Replacement.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class Replacements {
255255

256256
/// \brief Merges \p Replaces into the current replacements. \p Replaces
257257
/// refers to code after applying the current replacements.
258-
Replacements merge(const Replacements &Replaces) const;
258+
LLVM_NODISCARD Replacements merge(const Replacements &Replaces) const;
259259

260260
// Returns the affected ranges in the changed code.
261261
std::vector<Range> getAffectedRanges() const;

0 commit comments

Comments
 (0)