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

Side by Side Diff: util/misc/symbolic_constants_common.h

Issue 700143004: C++11: Use type aliases instead of typedefs (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 1 month 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 | « util/misc/initialization_state_dcheck.h ('k') | util/stdlib/string_number_conversion.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 //! For families whose values may be constructed as bitfields, allow 85 //! For families whose values may be constructed as bitfields, allow
86 //! conversion to strings containing multiple individual components treated as 86 //! conversion to strings containing multiple individual components treated as
87 //! being combined by a bitwise “or” operation. An example family of constants 87 //! being combined by a bitwise “or” operation. An example family of constants
88 //! that behaves this way is the suite of Mach exception masks. For constants 88 //! that behaves this way is the suite of Mach exception masks. For constants
89 //! that are not constructed as bitfields, or constants that are only 89 //! that are not constructed as bitfields, or constants that are only
90 //! partially constructed as bitfields, this option has no effect. 90 //! partially constructed as bitfields, this option has no effect.
91 kUseOr = 1 << 2, 91 kUseOr = 1 << 2,
92 }; 92 };
93 93
94 //! \brief A bitfield containing values of #SymbolicConstantToStringOptionBits. 94 //! \brief A bitfield containing values of #SymbolicConstantToStringOptionBits.
95 typedef unsigned int SymbolicConstantToStringOptions; 95 using SymbolicConstantToStringOptions = unsigned int;
96 96
97 //! \brief Options for various `StringTo*` functions in `symbolic_constants_*` 97 //! \brief Options for various `StringTo*` functions in `symbolic_constants_*`
98 //! files. 98 //! files.
99 //! 99 //!
100 //! Not every `StringTo*` function will implement each of these options. See 100 //! Not every `StringTo*` function will implement each of these options. See
101 //! function-specific documentation for details. 101 //! function-specific documentation for details.
102 //! 102 //!
103 //! \sa \ref symbolic_constant_terminology "Symbolic constant terminology" 103 //! \sa \ref symbolic_constant_terminology "Symbolic constant terminology"
104 enum StringToSymbolicConstantOptionBits { 104 enum StringToSymbolicConstantOptionBits {
105 //! \brief Allow conversion from a string containing a symbolic constant by 105 //! \brief Allow conversion from a string containing a symbolic constant by
(...skipping 12 matching lines...) Expand all
118 //! For families whose values may be constructed as bitfields, allow 118 //! For families whose values may be constructed as bitfields, allow
119 //! conversion of strings containing multiple individual components treated as 119 //! conversion of strings containing multiple individual components treated as
120 //! being combined by a bitwise “or” operation. An example family of constants 120 //! being combined by a bitwise “or” operation. An example family of constants
121 //! that behaves this way is the suite of Mach exception masks. For constants 121 //! that behaves this way is the suite of Mach exception masks. For constants
122 //! that are not constructed as bitfields, or constants that are only 122 //! that are not constructed as bitfields, or constants that are only
123 //! partially constructed as bitfields, this option has no effect. 123 //! partially constructed as bitfields, this option has no effect.
124 kAllowOr = 1 << 3, 124 kAllowOr = 1 << 3,
125 }; 125 };
126 126
127 //! \brief A bitfield containing values of #StringToSymbolicConstantOptionBits. 127 //! \brief A bitfield containing values of #StringToSymbolicConstantOptionBits.
128 typedef unsigned int StringToSymbolicConstantOptions; 128 using StringToSymbolicConstantOptions = unsigned int;
129 129
130 } // namespace crashpad 130 } // namespace crashpad
131 131
132 #endif // CRASHPAD_UTIL_MISC_SYMBOLIC_CONSTANTS_COMMON_H_ 132 #endif // CRASHPAD_UTIL_MISC_SYMBOLIC_CONSTANTS_COMMON_H_
OLDNEW
« no previous file with comments | « util/misc/initialization_state_dcheck.h ('k') | util/stdlib/string_number_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698