[libc-commits] [libc] faeb237 - [libc] Fix TWS issues in .td files
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Tue Sep 20 07:26:02 PDT 2022
Author: Jeff Bailey
Date: 2022-09-20T14:25:53Z
New Revision: faeb237bac7a303ab09135cf6c35505a85c18de7
URL: https://github.com/llvm/llvm-project/commit/faeb237bac7a303ab09135cf6c35505a85c18de7
DIFF: https://github.com/llvm/llvm-project/commit/faeb237bac7a303ab09135cf6c35505a85c18de7.diff
LOG: [libc] Fix TWS issues in .td files
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D134256
Added:
Modified:
libc/spec/posix.td
libc/spec/stdc.td
Removed:
################################################################################
diff --git a/libc/spec/posix.td b/libc/spec/posix.td
index 1f3c10ebe9b6c..1980b09996ed1 100644
--- a/libc/spec/posix.td
+++ b/libc/spec/posix.td
@@ -383,7 +383,7 @@ def POSIX : StandardSpec<"POSIX"> {
>,
]
>;
-
+
HeaderSpec StdLib = HeaderSpec<
"stdlib.h",
[], // Macros
diff --git a/libc/spec/stdc.td b/libc/spec/stdc.td
index 38d78a0fd12dc..fbd3cfa8a589c 100644
--- a/libc/spec/stdc.td
+++ b/libc/spec/stdc.td
@@ -22,7 +22,7 @@ def StdC : StandardSpec<"stdc"> {
[], // Enumerations
[]
>;
-
+
HeaderSpec CType = HeaderSpec<
"ctype.h",
[], // Macros
@@ -188,7 +188,7 @@ def StdC : StandardSpec<"stdc"> {
>,
]
>;
-
+
HeaderSpec String = HeaderSpec<
"string.h",
[
@@ -201,7 +201,7 @@ def StdC : StandardSpec<"stdc"> {
[
FunctionSpec<
"memcpy",
- RetValSpec<VoidPtr>,
+ RetValSpec<VoidPtr>,
[ArgSpec<VoidRestrictedPtr>,
ArgSpec<ConstVoidRestrictedPtr>,
ArgSpec<SizeTType>]
@@ -228,24 +228,24 @@ def StdC : StandardSpec<"stdc"> {
>,
FunctionSpec<
"strcpy",
- RetValSpec<CharPtr>,
+ RetValSpec<CharPtr>,
[ArgSpec<CharRestrictedPtr>, ArgSpec<ConstCharRestrictedPtr>]
>,
FunctionSpec<
"strncpy",
- RetValSpec<CharPtr>,
+ RetValSpec<CharPtr>,
[ArgSpec<CharRestrictedPtr>,
ArgSpec<ConstCharRestrictedPtr>,
ArgSpec<SizeTType>]
>,
FunctionSpec<
"strcat",
- RetValSpec<CharPtr>,
+ RetValSpec<CharPtr>,
[ArgSpec<CharRestrictedPtr>, ArgSpec<ConstCharRestrictedPtr>]
>,
FunctionSpec<
"strncat",
- RetValSpec<CharPtr>,
+ RetValSpec<CharPtr>,
[ArgSpec<CharPtr>, ArgSpec<ConstCharPtr>, ArgSpec<SizeTType>]
>,
FunctionSpec<
@@ -265,7 +265,7 @@ def StdC : StandardSpec<"stdc"> {
>,
FunctionSpec<
"strxfrm",
- RetValSpec<SizeTType>,
+ RetValSpec<SizeTType>,
[ArgSpec<CharRestrictedPtr>,
ArgSpec<ConstCharRestrictedPtr>,
ArgSpec<SizeTType>]
@@ -479,11 +479,11 @@ def StdC : StandardSpec<"stdc"> {
FunctionSpec<"coshf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,
FunctionSpec<"sinhf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,
FunctionSpec<"tanhf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,
-
+
FunctionSpec<"acosf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,
FunctionSpec<"asinf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,
FunctionSpec<"atanf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,
-
+
FunctionSpec<"atanhf", RetValSpec<FloatType>, [ArgSpec<FloatType>]>,
]
>;
More information about the libc-commits
mailing list