remove Sk prefix from CommandLineFlags
The command line flag package is tool-only, not part of Skia per se,
and does not need an Sk prefix to avoid naming conflicts.
And git clang-format.
Change-Id: Ida8477779e51750ed0475590ed2454841b23d6ea
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/202307
Auto-Submit: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/fuzz/FuzzMain.cpp b/fuzz/FuzzMain.cpp
index a395b86..eaa5241 100644
--- a/fuzz/FuzzMain.cpp
+++ b/fuzz/FuzzMain.cpp
@@ -5,10 +5,10 @@
* found in the LICENSE file.
*/
+#include "CommandLineFlags.h"
#include "Fuzz.h"
#include "SkCanvas.h"
#include "SkCodec.h"
-#include "SkCommandLineFlags.h"
#include "SkData.h"
#include "SkImage.h"
#include "SkImageEncoder.h"
@@ -96,11 +96,12 @@
#endif
int main(int argc, char** argv) {
- SkCommandLineFlags::SetUsage("Usage: fuzz -t <type> -b <path/to/file> [-n api-to-fuzz]\n"
- " fuzz -b <path/to/file>\n"
- "--help lists the valid types. If type is not specified,\n"
- "fuzz will make a guess based on the name of the file.\n");
- SkCommandLineFlags::Parse(argc, argv);
+ CommandLineFlags::SetUsage(
+ "Usage: fuzz -t <type> -b <path/to/file> [-n api-to-fuzz]\n"
+ " fuzz -b <path/to/file>\n"
+ "--help lists the valid types. If type is not specified,\n"
+ "fuzz will make a guess based on the name of the file.\n");
+ CommandLineFlags::Parse(argc, argv);
SkString path = SkString(FLAGS_bytes.isEmpty() ? argv[0] : FLAGS_bytes[0]);
SkString type = SkString(FLAGS_type.isEmpty() ? "" : FLAGS_type[0]);
@@ -227,7 +228,7 @@
return 0;
}
SkDebugf("Unknown type %s\n", type.c_str());
- SkCommandLineFlags::PrintUsage();
+ CommandLineFlags::PrintUsage();
return 1;
}