forked from OSchip/llvm-project
[ASan] cleanup: trailing semicolons, trailing colons in enums
llvm-svn: 159338
This commit is contained in:
parent
fa42dd7ac4
commit
70386aaffa
|
@ -153,7 +153,7 @@ enum {
|
|||
CHUNK_AVAILABLE = 0x57,
|
||||
CHUNK_ALLOCATED = 0x32,
|
||||
CHUNK_QUARANTINE = 0x19,
|
||||
CHUNK_MEMALIGN = 0xDC,
|
||||
CHUNK_MEMALIGN = 0xDC
|
||||
};
|
||||
|
||||
struct ChunkBase {
|
||||
|
|
|
@ -371,7 +371,7 @@ INTERCEPTOR(char*, strchr, const char *str, int c) {
|
|||
INTERCEPTOR(char*, index, const char *string, int c)
|
||||
ALIAS(WRAPPER_NAME(strchr));
|
||||
#else
|
||||
DEFINE_REAL(char*, index, const char *string, int c);
|
||||
DEFINE_REAL(char*, index, const char *string, int c)
|
||||
#endif
|
||||
|
||||
INTERCEPTOR(int, strcasecmp, const char *s1, const char *s2) {
|
||||
|
|
|
@ -55,7 +55,7 @@ enum {
|
|||
MACOS_VERSION_UNKNOWN = 0,
|
||||
MACOS_VERSION_LEOPARD,
|
||||
MACOS_VERSION_SNOW_LEOPARD,
|
||||
MACOS_VERSION_LION,
|
||||
MACOS_VERSION_LION
|
||||
};
|
||||
|
||||
static int GetMacosVersion() {
|
||||
|
@ -295,7 +295,7 @@ INTERCEPTOR(void, dispatch_async_f, dispatch_queue_t dq, void *ctxt,
|
|||
asan_dispatch_call_block_and_release);
|
||||
}
|
||||
|
||||
DECLARE_REAL_AND_INTERCEPTOR(void, free, void *ptr);
|
||||
DECLARE_REAL_AND_INTERCEPTOR(void, free, void *ptr)
|
||||
|
||||
INTERCEPTOR(void, dispatch_sync_f, dispatch_queue_t dq, void *ctxt,
|
||||
dispatch_function_t func) {
|
||||
|
|
|
@ -43,21 +43,21 @@
|
|||
// You can access original function by calling REAL(foo)(bar, baz).
|
||||
// By default, REAL(foo) will be visible only inside your interceptor, and if
|
||||
// you want to use it in other parts of RTL, you'll need to:
|
||||
// 3a) add DECLARE_REAL(int, foo, const char*, double); to a
|
||||
// 3a) add DECLARE_REAL(int, foo, const char*, double) to a
|
||||
// header file.
|
||||
// However, if the call "INTERCEPT_FUNCTION(foo)" and definition for
|
||||
// INTERCEPTOR(..., foo, ...) are in different files, you'll instead need to:
|
||||
// 3b) add DECLARE_REAL_AND_INTERCEPTOR(int, foo, const char*, double);
|
||||
// 3b) add DECLARE_REAL_AND_INTERCEPTOR(int, foo, const char*, double)
|
||||
// to a header file.
|
||||
|
||||
// Notes: 1. Things may not work properly if macro INTERCEPT(...) {...} or
|
||||
// DECLARE_REAL(...); are located inside namespaces.
|
||||
// DECLARE_REAL(...) are located inside namespaces.
|
||||
// 2. On Mac you can also use: "OVERRIDE_FUNCTION(foo, zoo);" to
|
||||
// effectively redirect calls from "foo" to "zoo". In this case
|
||||
// you aren't required to implement
|
||||
// INTERCEPTOR(int, foo, const char *bar, double baz);
|
||||
// INTERCEPTOR(int, foo, const char *bar, double baz) {...}
|
||||
// but instead you'll have to add
|
||||
// DEFINE_REAL(int, foo, const char *bar, double baz); in your
|
||||
// DEFINE_REAL(int, foo, const char *bar, double baz) in your
|
||||
// source file (to define a pointer to overriden function).
|
||||
|
||||
// How it works:
|
||||
|
|
Loading…
Reference in New Issue