[PATCH] Pull Lexer's CharInfo table out for general use throughout Clang

Richard Smith richard at metafoo.co.uk
Tue Feb 5 19:25:05 PST 2013



================
Comment at: include/clang/Basic/CharInfo.h:29
@@ +28,3 @@
+/// Returns true if this is an ASCII character.
+LLVM_ATTRIBUTE_ALWAYS_INLINE
+static inline bool isASCII(char c) {
----------------
Do these attributes make a measurable difference? 'static inline' is already a pretty big hint to inline, especially for a single-call-site function.


http://llvm-reviews.chandlerc.com/D363



More information about the cfe-commits mailing list