[PATCH] D19062: Add functions in ctype.h to builtin function database (Fix)

Taewook Oh via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 13 08:57:14 PDT 2016


twoh created this revision.
twoh added a reviewer: aaron.ballman.
twoh added subscribers: joerg, cfe-commits, rsmith.

Add functions declared in ctype.h to builtin function database. All functions are annotated with nothrow and const attribute, which enables better optimization. 

This patch has been accepted and committed in r266199(http://reviews.llvm.org/D18970, http://reviews.llvm.org/rL266199), but reverted because newly added test caused build bot failures(http://reviews.llvm.org/rL266201). I fixed the test and resubmit patch here. 

http://reviews.llvm.org/D19062

Files:
  include/clang/Basic/Builtins.def
  include/clang/Basic/Builtins.h
  lib/Sema/SemaDecl.cpp
  test/FixIt/typo.m
  test/Sema/enable_if.c
  test/Sema/libbuiltins-ctype.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19062.53573.patch
Type: text/x-patch
Size: 79935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160413/a50bd518/attachment-0001.bin>


More information about the cfe-commits mailing list