]> granicus.if.org Git - clang/commitdiff
Add comments on how to print error retuned by tooling::Replacements::add().
authorEric Liu <ioeric@google.com>
Tue, 15 Nov 2016 19:05:40 +0000 (19:05 +0000)
committerEric Liu <ioeric@google.com>
Tue, 15 Nov 2016 19:05:40 +0000 (19:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287008 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Tooling/Core/Replacement.h

index 1442bebe9c3ba287aad174458a96903e5e3fb8bf..5bb1e7f023fac8dbdf1d9d479f8762b94317948b 100644 (file)
@@ -164,8 +164,9 @@ class Replacements {
   /// it returns an llvm::Error, i.e. there is a conflict between R and the
   /// existing replacements (i.e. they are order-dependent) or R's file path is
   /// different from the filepath of existing replacements. Callers must
-  /// explicitly check the Error returned. This prevents users from adding
-  /// order-dependent replacements. To control the order in which
+  /// explicitly check the Error returned, and the returned error can be
+  /// converted to a string message with `llvm::toString()`. This prevents users
+  /// from adding order-dependent replacements. To control the order in which
   /// order-dependent replacements are applied, use merge({R}) with R referring
   /// to the changed code after applying all existing replacements.
   /// Two replacements A and B are considered order-independent if applying them