diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-18 04:56:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-18 04:56:44 +0000 |
commit | 2383b7f6aea2cb2bf2b5bfc0ec730f9354fecbbf (patch) | |
tree | 13bdae5f244e4365dc659a6d5c94e84e910b626f /include/clang/Analysis/PathSensitive/BugReporter.h | |
parent | c5c8d7d57dbfb2ecb7c7db51711e3b198e379d6a (diff) |
Change the diagnostics interface to take an array of pointers to
strings instead of array of strings. This reduces string copying
in some not-very-important cases, but paves the way for future
improvements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/PathSensitive/BugReporter.h')
-rw-r--r-- | include/clang/Analysis/PathSensitive/BugReporter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Analysis/PathSensitive/BugReporter.h b/include/clang/Analysis/PathSensitive/BugReporter.h index 9d39c9cb9f..6ab2a4e713 100644 --- a/include/clang/Analysis/PathSensitive/BugReporter.h +++ b/include/clang/Analysis/PathSensitive/BugReporter.h @@ -307,7 +307,7 @@ public: Diagnostic::Level DiagLevel, FullSourceLoc Pos, diag::kind ID, - const std::string *Strs, + const std::string **Strs, unsigned NumStrs, const SourceRange *Ranges, unsigned NumRanges) { @@ -322,7 +322,7 @@ public: R.addRange(*Ranges); for ( ; NumStrs ; --NumStrs, ++Strs) - R.addString(*Strs); + R.addString(**Strs); } // Iterators. |