]> granicus.if.org Git - clang/commit
Add support for CallExpr::isBuiltinConstantExpr(). For now, this hook is used to...
authorSteve Naroff <snaroff@apple.com>
Thu, 31 Jan 2008 01:07:12 +0000 (01:07 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 31 Jan 2008 01:07:12 +0000 (01:07 +0000)
commitc4f8e8b645b8e0e685c089dde0674c6f29a24168
tree0fc81114fae7fe93d74cc705c8bc4fee51d07c8c
parent4150abf22e31028f89f690812300a2b4ee4b7874
Add support for CallExpr::isBuiltinConstantExpr(). For now, this hook is used to support CFConstantStrings. Can be extended to support other built-in functions.

This allows the following code to compile without error...

#include <CoreFoundation/CoreFoundation.h>

#define CONST_STRING_DECL(S, V) const CFStringRef S = (const CFStringRef)__builtin___CFStringMakeConstantString(V);

CONST_STRING_DECL(kCFTimeZoneSystemTimeZoneDidChangeNotification, "kCFTimeZoneSystemTimeZoneDidChangeNotification")

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46592 91177308-0d34-0410-b5e6-96231b3b80d8
AST/Expr.cpp
include/clang/AST/Expr.h