[PATCH] D128048: Add a new clang option "-ftime-trace=<value>"

Whitney Tsang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 30 18:54:39 PDT 2022


Whitney accepted this revision.
Whitney added inline comments.


================
Comment at: clang/tools/driver/cc1_main.cpp:265
+      SmallString<128> TracePath(Clang->getFrontendOpts().TimeTracePath);
+      if (llvm::sys::fs::is_directory(TracePath)) {
+        llvm::sys::path::append(TracePath, FileName);
----------------
No need braces for single instruction block. https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128048/new/

https://reviews.llvm.org/D128048



More information about the cfe-commits mailing list