[PATCH] Protection against stack-based memory corruption errors using SafeStack: Clang command line option and function attribute
Dmitri Gribenko
gribozavr at gmail.com
Wed May 6 09:54:49 PDT 2015
================
Comment at: test/SemaCXX/attr-no-safestack.cpp:12
@@ +11,3 @@
+void nosp_fun_args() __attribute__((no_safe_stack(1))); // \
+ // expected-error {{'no_safe_stack' attribute takes no arguments}}
+
----------------
Rather than relying on line continuations, you could use expected-error at -1.
http://reviews.llvm.org/D6095
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the cfe-commits
mailing list