aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/Analyses/FormatString.h
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2012-02-22 10:17:01 +0000
committerHans Wennborg <hans@hanshq.net>2012-02-22 10:17:01 +0000
commit76517426dc8bf7734c07eefc35171a6bfdba1a2b (patch)
treec7d54d3b390503dc30c37057385243abccec3592 /include/clang/Analysis/Analyses/FormatString.h
parent341785ec52f87c0803ba52dc88faac4e136f8593 (diff)
Warn about non-standard format strings (pr12017)
This adds the -Wformat-non-standard flag (off by default, enabled by -pedantic), which warns about non-standard things in format strings (such as the 'q' length modifier, the 'S' conversion specifier, etc.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Analysis/Analyses/FormatString.h')
-rw-r--r--include/clang/Analysis/Analyses/FormatString.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Analysis/Analyses/FormatString.h b/include/clang/Analysis/Analyses/FormatString.h
index f7a658ea63..9dc8f8878d 100644
--- a/include/clang/Analysis/Analyses/FormatString.h
+++ b/include/clang/Analysis/Analyses/FormatString.h
@@ -348,6 +348,12 @@ public:
bool usesPositionalArg() const { return UsesPositionalArg; }
bool hasValidLengthModifier() const;
+
+ bool hasStandardLengthModifier() const;
+
+ bool hasStandardConversionSpecifier(const LangOptions &LangOpt) const;
+
+ bool hasStandardLengthConversionCombination() const;
};
} // end analyze_format_string namespace