mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
C++11: Use sized enums (+4% performance).
This commit is contained in:
+1
-1
@@ -137,7 +137,7 @@ string V3Os::filenameNonExt(const string& filename) {
|
||||
|
||||
string V3Os::filenameSubstitute(const string& filename) {
|
||||
string out;
|
||||
enum { NONE, PAREN, CURLY } brackets = NONE;
|
||||
enum : uint8_t { NONE, PAREN, CURLY } brackets = NONE;
|
||||
for (string::size_type pos = 0; pos < filename.length(); ++pos) {
|
||||
if ((filename[pos] == '$') && (pos + 1 < filename.length())) {
|
||||
switch (filename[pos + 1]) {
|
||||
|
||||
Reference in New Issue
Block a user