aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRoland McGrath <mcgrathr@google.com>2024-03-21 15:11:31 -0700
committerGitHub <noreply@github.com>2024-03-21 18:11:31 -0400
commitc56211b2430cf63ba3a469a4ae89cf2e829e9332 (patch)
tree0601a1b8bf227c26b6d084945be34eda8df26627 /clang/lib/Frontend/CompilerInvocation.cpp
parentb8e53630f899ddb8a2ec0d37bcb86608d58c4960 (diff)
downloadllvm-c56211b2430cf63ba3a469a4ae89cf2e829e9332.zip
llvm-c56211b2430cf63ba3a469a4ae89cf2e829e9332.tar.gz
llvm-c56211b2430cf63ba3a469a4ae89cf2e829e9332.tar.bz2
[libc] Make math-macros.h C++-friendly (#86206)
The isfinite, isnan, and isinf "functions" are specified by C99..C23 to be macros that act as type-generic functions. Defining them as their __builtin_* counterparts works fine for this. However, in C++ the identifiers need to be usable in different contexts, such as being declared inside a C++ namespace. So define inline constexpr template functions for them under `#ifdef __cplusplus`.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions