Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: Source/wtf/Compiler.h

Issue 784273006: remove COMPILER_SUPPORTS(BLOCKS) and COMPILER_SUPPORTS(HAS_TRIVIAL_DESTRUCTOR) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 28 matching lines...) Expand all
39 39
40 /* COMPILER(CLANG) - Clang */ 40 /* COMPILER(CLANG) - Clang */
41 #if defined(__clang__) 41 #if defined(__clang__)
42 #define WTF_COMPILER_CLANG 1 42 #define WTF_COMPILER_CLANG 1
43 43
44 #define CLANG_PRAGMA(PRAGMA) _Pragma(PRAGMA) 44 #define CLANG_PRAGMA(PRAGMA) _Pragma(PRAGMA)
45 45
46 /* Specific compiler features */ 46 /* Specific compiler features */
47 47
48 #define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS __has_feature(cxx_explici t_conversions) 48 #define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS __has_feature(cxx_explici t_conversions)
49 #define WTF_COMPILER_SUPPORTS_BLOCKS __has_feature(blocks)
50 #define WTF_COMPILER_SUPPORTS_HAS_TRIVIAL_DESTRUCTOR __has_extension(has_trivial _destructor)
51 49
52 #endif 50 #endif
53 51
54 #ifndef CLANG_PRAGMA 52 #ifndef CLANG_PRAGMA
55 #define CLANG_PRAGMA(PRAGMA) 53 #define CLANG_PRAGMA(PRAGMA)
56 #endif 54 #endif
57 55
58 /* COMPILER(MSVC) - Microsoft Visual C++ */ 56 /* COMPILER(MSVC) - Microsoft Visual C++ */
59 #if defined(_MSC_VER) 57 #if defined(_MSC_VER)
60 #define WTF_COMPILER_MSVC 1 58 #define WTF_COMPILER_MSVC 1
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 178 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1
181 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__ 179 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__
182 #elif COMPILER(MSVC) 180 #elif COMPILER(MSVC)
183 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 181 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1
184 #define WTF_PRETTY_FUNCTION __FUNCSIG__ 182 #define WTF_PRETTY_FUNCTION __FUNCSIG__
185 #else 183 #else
186 #define WTF_PRETTY_FUNCTION __FUNCTION__ 184 #define WTF_PRETTY_FUNCTION __FUNCTION__
187 #endif 185 #endif
188 186
189 #endif /* WTF_Compiler_h */ 187 #endif /* WTF_Compiler_h */
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698