[PATCH] D86508: [clang] consistently use getLangOpts()

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 24 23:50:35 PDT 2020


nickdesaulniers created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
nickdesaulniers requested review of this revision.

File was inconsistent.

[clang] implement __builtin_puts

More importantly, start adding missing tests for
__builtin_*/__has_builtin, and document stdio.h builtins.

Reported-by: Masahiro Yamada <masahiroy at kernel.org>

[clang] implement+test remaining C90 __builtin_ functions

Implements most of the missing __builtin_* functions, and a few
straglers like putchar, fputs, and free.

Format strings for __builtin_* were copied (and f -> F), but the
signatures for the three above should be more carefully checked.

Signed-off-by: Nick Desaulniers <ndesaulniers at google.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86508

Files:
  clang/docs/LanguageExtensions.rst
  clang/include/clang/Basic/Builtins.def
  clang/lib/Lex/PPMacroExpansion.cpp
  clang/test/CXX/over/over.oper/over.literal/p7.cpp
  clang/test/CodeGen/builtins.c
  clang/test/Preprocessor/has_builtin.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86508.287571.patch
Type: text/x-patch
Size: 19835 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200825/91e6746c/attachment-0001.bin>


More information about the cfe-commits mailing list