summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_flag_parser.h
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-07-21 23:03:13 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-07-21 23:03:13 +0000
commit4ca862074014614bfdd8c7b96af7aac77d21ab8b (patch)
treee3bcf30b5ada43faf1e2a2f3d3f3b2e1f1929fe5 /lib/sanitizer_common/sanitizer_flag_parser.h
parent65f9d1f55e1cf912413d0af54b23ee418abc92f4 (diff)
[sanitizer] Implement include_if_exists with process name substitution.
include_if_exists=/path/to/sanitizer/options reads flags from the file if it is present. "%b" in the include file path (for both variants of the flag) is replaced with the basename of the main executable. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@242853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_flag_parser.h')
-rw-r--r--lib/sanitizer_common/sanitizer_flag_parser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_flag_parser.h b/lib/sanitizer_common/sanitizer_flag_parser.h
index 0ac7634cb..2477aeddb 100644
--- a/lib/sanitizer_common/sanitizer_flag_parser.h
+++ b/lib/sanitizer_common/sanitizer_flag_parser.h
@@ -93,6 +93,7 @@ class FlagParser {
void RegisterHandler(const char *name, FlagHandlerBase *handler,
const char *desc);
void ParseString(const char *s);
+ bool ParseFile(const char *path, bool ignore_missing);
void PrintFlagDescriptions();
static LowLevelAllocator Alloc;