]> granicus.if.org Git - clang/commitdiff
For now, do not output the 'DisplayHint' in plist files.
authorTed Kremenek <kremenek@apple.com>
Mon, 2 Mar 2009 19:39:50 +0000 (19:39 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 2 Mar 2009 19:39:50 +0000 (19:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65860 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/PathDiagnostic.cpp

index d1120ef2d160288f0e18477b1dc70d45471489bc..818c5480ee9f6d8061d8fa7cc8f7531d36d2d59a 100644 (file)
@@ -35,13 +35,13 @@ static inline size_t GetNumCharsToLastNonPeriod(const std::string &s) {
 
 PathDiagnosticPiece::PathDiagnosticPiece(FullSourceLoc pos,
                                          const std::string& s,
-                                         DisplayHint hint)
-  : Pos(pos), str(s, 0, GetNumCharsToLastNonPeriod(s)), Hint(hint) {}
+                                         Kind k, DisplayHint hint)
+  : Pos(pos), str(s, 0, GetNumCharsToLastNonPeriod(s)), kind(k), Hint(hint) {}
 
 PathDiagnosticPiece::PathDiagnosticPiece(FullSourceLoc pos,
-                                         const char* s,
+                                         const char* s, Kind k,
                                          DisplayHint hint)
-  : Pos(pos), str(s, GetNumCharsToLastNonPeriod(s)), Hint(hint) {}
+  : Pos(pos), str(s, GetNumCharsToLastNonPeriod(s)), kind(k), Hint(hint) {}
 
 PathDiagnostic::~PathDiagnostic() {
   for (iterator I = begin(), E = end(); I != E; ++I) delete &*I;