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

Unified Diff: src/base/flags.h

Issue 613143004: Changes to ALLOW_UNUSED to match upcoming changes to the Chromium trunk: (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Missed one Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/base/compiler-specific.h ('k') | src/base/macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/flags.h
diff --git a/src/base/flags.h b/src/base/flags.h
index f3420ee536112f887b0cec648fb96a1e83170ca5..093b72aa65e29f291e0d1b61a6b928d85d3eeabf 100644
--- a/src/base/flags.h
+++ b/src/base/flags.h
@@ -65,41 +65,42 @@ class Flags FINAL {
#define DEFINE_OPERATORS_FOR_FLAGS(Type) \
- inline Type operator&(Type::flag_type lhs, \
- Type::flag_type rhs)ALLOW_UNUSED WARN_UNUSED_RESULT; \
+ inline Type operator&(Type::flag_type lhs, Type::flag_type rhs) \
+ ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \
inline Type operator&(Type::flag_type lhs, Type::flag_type rhs) { \
return Type(lhs) & rhs; \
} \
inline Type operator&(Type::flag_type lhs, \
- const Type& rhs)ALLOW_UNUSED WARN_UNUSED_RESULT; \
+ const Type& rhs) ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \
inline Type operator&(Type::flag_type lhs, const Type& rhs) { \
return rhs & lhs; \
} \
- inline void operator&(Type::flag_type lhs, Type::mask_type rhs)ALLOW_UNUSED; \
+ inline void operator&(Type::flag_type lhs, \
+ Type::mask_type rhs) ALLOW_UNUSED_TYPE; \
inline void operator&(Type::flag_type lhs, Type::mask_type rhs) {} \
inline Type operator|(Type::flag_type lhs, Type::flag_type rhs) \
- ALLOW_UNUSED WARN_UNUSED_RESULT; \
+ ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \
inline Type operator|(Type::flag_type lhs, Type::flag_type rhs) { \
return Type(lhs) | rhs; \
} \
inline Type operator|(Type::flag_type lhs, const Type& rhs) \
- ALLOW_UNUSED WARN_UNUSED_RESULT; \
+ ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \
inline Type operator|(Type::flag_type lhs, const Type& rhs) { \
return rhs | lhs; \
} \
- inline void operator|(Type::flag_type lhs, Type::mask_type rhs) \
- ALLOW_UNUSED; \
+ inline void operator|(Type::flag_type lhs, \
+ Type::mask_type rhs) ALLOW_UNUSED_TYPE; \
inline void operator|(Type::flag_type lhs, Type::mask_type rhs) {} \
inline Type operator^(Type::flag_type lhs, Type::flag_type rhs) \
- ALLOW_UNUSED WARN_UNUSED_RESULT; \
+ ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \
inline Type operator^(Type::flag_type lhs, Type::flag_type rhs) { \
return Type(lhs) ^ rhs; \
} inline Type operator^(Type::flag_type lhs, const Type& rhs) \
- ALLOW_UNUSED WARN_UNUSED_RESULT; \
+ ALLOW_UNUSED_TYPE WARN_UNUSED_RESULT; \
inline Type operator^(Type::flag_type lhs, const Type& rhs) { \
return rhs ^ lhs; \
- } inline void operator^(Type::flag_type lhs, Type::mask_type rhs) \
- ALLOW_UNUSED; \
+ } inline void operator^(Type::flag_type lhs, \
+ Type::mask_type rhs) ALLOW_UNUSED_TYPE; \
inline void operator^(Type::flag_type lhs, Type::mask_type rhs) {}
} // namespace base
« no previous file with comments | « src/base/compiler-specific.h ('k') | src/base/macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698