Skip to content

Commit 997413a

Browse files
committed
Add a test that makes sure that in ./include and ./lib "#pragma clang optimize off" does not exist.
This is a useful debugging tool, but we really do not want it to sneak into the code base by mistake.
1 parent 61de03c commit 997413a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// This test runs a grep that validates that specific patterns do not occur in
2+
// the code base.
3+
4+
// The [c] is necessary to prevent substitutions by lit. Same difference since it
5+
// is just a regex.
6+
//
7+
// RUN: cd %swift_src_root && not git grep 'pragma [c]lang optimize off' include lib stdlib

0 commit comments

Comments
 (0)