]> granicus.if.org Git - clang/commitdiff
[clang-cl] Whitelist -fbracket-depth=123 in clang-cl
authorReid Kleckner <rnk@google.com>
Thu, 21 Feb 2019 21:53:12 +0000 (21:53 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 21 Feb 2019 21:53:12 +0000 (21:53 +0000)
Users apparently need it when expanding large quantities of macros.

Fixes PR38685

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@354626 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Options.td
test/Driver/cl-options.c

index 57050412ab5dc2eb20e0f9e50138e931d7fb83c0..dd597550d2f2649929d7c077b07e642c892817c7 100644 (file)
@@ -901,7 +901,7 @@ def fno_fast_math : Flag<["-"], "fno-fast-math">, Group<f_Group>;
 def fmath_errno : Flag<["-"], "fmath-errno">, Group<f_Group>, Flags<[CC1Option]>,
   HelpText<"Require math functions to indicate errors by setting errno">;
 def fno_math_errno : Flag<["-"], "fno-math-errno">, Group<f_Group>;
-def fbracket_depth_EQ : Joined<["-"], "fbracket-depth=">, Group<f_Group>;
+def fbracket_depth_EQ : Joined<["-"], "fbracket-depth=">, Group<f_Group>, Flags<[CoreOption]>;
 def fsignaling_math : Flag<["-"], "fsignaling-math">, Group<f_Group>;
 def fno_signaling_math : Flag<["-"], "fno-signaling-math">, Group<f_Group>;
 def fjump_tables : Flag<["-"], "fjump-tables">, Group<f_Group>;
index 1fa2ae3914b1e3140eb0349fd2794b9f56d2f06b..9c6bb36877c114421b9fbe46a030996008d59272 100644 (file)
 // RUN:     -fmerge-all-constants \
 // RUN:     -no-canonical-prefixes \
 // RUN:     -march=skylake \
+// RUN:     -fbracket-depth=123 \
 // RUN:     --version \
 // RUN:     -Werror /Zs -- %s 2>&1