diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-01-28 02:02:59 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-01-28 02:02:59 +0000 |
commit | d2dcece5882215e92a80bff8a7b7fd2fd81d7086 (patch) | |
tree | c1fa6f66fdea3667d55e4e0aa151e52bd51d8c96 /include | |
parent | 41d8903731782ee85ee2b19734008b006e01c76f (diff) |
Rename namespace clang::printf to clang::analyze_printf to avoid problems where the reference to 'printf' is ambiguous.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Analysis/Analyses/PrintfFormatString.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/clang/Analysis/Analyses/PrintfFormatString.h b/include/clang/Analysis/Analyses/PrintfFormatString.h index 6ae7e0c6e9..d8630e8edb 100644 --- a/include/clang/Analysis/Analyses/PrintfFormatString.h +++ b/include/clang/Analysis/Analyses/PrintfFormatString.h @@ -18,7 +18,7 @@ #include <cassert> namespace clang { -namespace printf { +namespace analyze_printf { class ConversionSpecifier { public: @@ -61,6 +61,7 @@ public: ConversionSpecifier(Kind k) : kind(k) {} + bool isObjCArg() const { return kind >= ObjCBeg && kind <= ObjCEnd; } bool isIntArg() const { return kind >= dArg && kind <= iArg; } bool isUIntArg() const { return kind >= oArg && kind <= XArg; } bool isDoubleArg() const { return kind >= fArg && kind <= AArg; } @@ -147,6 +148,10 @@ public: return (LengthModifier) lengthModifier; } + const OptionalAmount &getFieldWidth() const { + return FieldWidth; + } + void setFieldWidth(const OptionalAmount &Amt) { FieldWidth = Amt; } @@ -154,6 +159,10 @@ public: void setPrecision(const OptionalAmount &Amt) { Precision = Amt; } + + const OptionalAmount &getPrecision() const { + return Precision; + } bool isLeftJustified() const { return flags & LeftJustified; } bool hasPlusPrefix() const { return flags & PlusPrefix; } |