aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/PathSensitive/BugReporter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-19 07:32:16 +0000
committerChris Lattner <sabre@nondot.org>2008-11-19 07:32:16 +0000
commit43b628cd47ecdc3caf640d79b3ad7ecef0f2c285 (patch)
tree128efac4ac9d423f5ac93b7ffdbce909e60fb1d4 /include/clang/Analysis/PathSensitive/BugReporter.h
parent8365223e5498255a1285b6bb206f5894fe5b83c6 (diff)
Allow sending IdentifierInfo*'s into Diagnostics without turning them into strings
first. This should allow removal of a bunch of II->getName() calls. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/PathSensitive/BugReporter.h')
-rw-r--r--include/clang/Analysis/PathSensitive/BugReporter.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/Analysis/PathSensitive/BugReporter.h b/include/clang/Analysis/PathSensitive/BugReporter.h
index 870e9d39f0..d9969efb9c 100644
--- a/include/clang/Analysis/PathSensitive/BugReporter.h
+++ b/include/clang/Analysis/PathSensitive/BugReporter.h
@@ -325,13 +325,15 @@ public:
R.addString(Info.getArgCStr(i));
break;
case DiagnosticInfo::ak_sint:
- // FIXME: Optimize
R.addString(llvm::itostr(Info.getArgSInt(i)));
break;
case DiagnosticInfo::ak_uint:
- // FIXME: Optimize
R.addString(llvm::utostr_32(Info.getArgUInt(i)));
break;
+ case DiagnosticInfo::ak_identifierinfo:
+ R.addString(Info.getArgIdentifier(i)->getName());
+ break;
+
}
}
}