Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F64
D5.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Subscribers
None
D5.diff
View Options
Index: ClangCheck.cpp
===================================================================
--- ClangCheck.cpp
+++ ClangCheck.cpp
@@ -10,6 +10,28 @@
// This file implements a clang-check tool that runs the
// clang::SyntaxOnlyAction over a number of translation units.
//
+// Usage:
+// clang-check [-p <cmake-output-dir>] <file1> <file2> ...
+//
+// Where <cmake-output-dir> is a CMake build directory in which a file named
+// compile_commands.json exists (enable -DCMAKE_EXPORT_COMPILE_COMMANDS in
+// CMake to get this output). If not provided, clang-check will search for this
+// file in all of <file1>'s parent directories.
+//
+// <file1> ... specify the paths of files in the CMake source tree. This path
+// is looked up in the compile command database. If the path of a file is
+// absolute, it needs to point into CMake's source tree. If the path is
+// relative, the current working directory needs to be in the CMake source
+// tree and the file must be in a subdirectory of the current working
+// directory. "./" prefixes in the relative files will be automatically
+// removed, but the rest of a relative path must be a suffix of a path in
+// the compile command line database.
+//
+// For example, to use clang-check on all files in a subtree of the source
+// tree, use:
+//
+// /path/in/subtree $ find . -name '*.cpp'| xargs clang-check
+//
//===----------------------------------------------------------------------===//
#include "llvm/Support/CommandLine.h"
@@ -30,39 +52,6 @@
cl::desc("<source0> [... <sourceN>]"),
cl::OneOrMore);
-static cl::extrahelp MoreHelp(
- "\n"
- "<build-path> is used to read a compile command database.\n"
- "\n"
- "For example, it can be a CMake build directory in which a file named\n"
- "compile_commands.json exists (use -DCMAKE_EXPORT_COMPILE_COMMANDS=ON\n"
- "CMake option to get this output). When no build path is specified,\n"
- "clang-check will attempt to locate it automatically using all parent\n"
- "paths of the first input file.\n"
- "\n"
- "<source0> ... specify the paths of source files. These paths are looked\n"
- "up in the compile command database. If the path of a file is absolute,\n"
- "it needs to point into CMake's source tree. If the path is relative,\n"
- "the current working directory needs to be in the CMake source tree and\n"
- "the file must be in a subdirectory of the current working directory.\n"
- "\"./\" prefixes in the relative files will be automatically removed,\n"
- "but the rest of a relative path must be a suffix of a path in the\n"
- "compile command database.\n"
- "\n"
- "For example, to use clang-check on all files in a subtree of the source\n"
- "tree, use:\n"
- "\n"
- " find path/in/subtree -name '*.cpp'|xargs clang-check\n"
- "\n"
- "or using a specific build path:\n"
- "\n"
- " find path/in/subtree -name '*.cpp'|xargs clang-check -p build/path\n"
- "\n"
- "Note, that path/in/subtree and current directory should follow the\n"
- "rules described above.\n"
- "\n"
-);
-
int main(int argc, const char **argv) {
llvm::OwningPtr<CompilationDatabase> Compilations(
FixedCompilationDatabase::loadFromCommandLine(argc, argv));
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
64
Attached To
rGa8e1f80f8b68: [mlir][sparse][gpu] derive type of cuSparse op
D151005: [mlir][sparse][gpu] derive type of cuSparse op
rG00a04de2edf7: [RISCV] Rename WriteFCvtF32ToF32 sched class to WriteFRoundF32.
D142688: [Clang][Driver] Handle LoongArch multiarch tuples
D145336: [mlir][tosa] Add TOSA f64 type support for const op
rGb77be0bd5468: [RISCV] Be more explicit string replacements in RISCVInstrInfoVPseudos.td. NFC
D142599: [mlir][tosa] Add TOSA f64 type support for cast op
D141341: [mlir][tosa] Add uint16 to TOSA type support
D138775: [mlir] Support SSA values in runtime op verification errors
D130149: [mlir][complex] Custom attribute comlex.number.
rG7faf75bb3e3a: Introduce a new Dense Array attribute
rG508eb41d82ca: Introduce a new Dense Array attribute
D123774: Introduce a new Dense Array attribute
rGbfc60acd9803: [RISCV] Adjust RISCVInstrInfoVSDPatterns.td for different pseudo instructions…
D95404: [RISCV] Adjust RISCVInstrInfoVSDPatterns.td for different pseudo instructions for different FPR.
rG5b91a6a88bd6: [AMDGPU] Allow some modifiers on VOP3B instructions
D90296: [AMDGPU] Allow some modifiers on VOP3B instructions
D75352: Add rsqrt op to Standard dialect and lower it to LLVM dialect.
rG49c4d2a630e2: Fix builder getFloatAttr of double to use F64 type and use fltSemantics in…
rZORGe373592258fc: Fix a CQ regression from my patch to split F32/F64 into seperate register…
rZORG027a2671ef1e: Add a bunch of patterns for F64 FP ops, add some more integer ops
rZORG0616fa6b9b4c: The selection dag code handles the promotions from F32 to F64 for us, so we…
rG45bc148093dc: AMDGPU: Fix enabling denormals by default on pre-VI targets
rG5647e89f5a63: [X86] Split WriteCvtI2F/WriteCvtF2I into I<->F32 and I<->F64 scheduler classes
rGbe9a20688347: [X86] Split WriteCvtF2F into F32->F64 and F64->F32 scheduler classes
rG68107657d40f: AMDGPU: Fix gfx801 features
rG558012a3fca0: Fix a few instances found in SelectionDAG where we were not handling F16 at…
rGb3482af34184: Set trunc store action to Expand for all X86 targets.
rGe373592258fc: Fix a CQ regression from my patch to split F32/F64 into seperate register…
rG027a2671ef1e: Add a bunch of patterns for F64 FP ops, add some more integer ops
rG0616fa6b9b4c: The selection dag code handles the promotions from F32 to F64 for us, so we…
D54882: [AMDGPU] Add sdwa support for ADD|SUB U64 decomposed Pseudos
D50467: [SEMA] add more -Wfloat-conversion to compound assigment analysis
rL339278: AMDGPU: Fix enabling denormals by default on pre-VI targets
rC339278: AMDGPU: Fix enabling denormals by default on pre-VI targets
D50376: AMDGPU: Fix enabling denormals by default on pre-VI targets
rL332451: [X86] Split WriteCvtI2F/WriteCvtF2I into I<->F32 and I<->F64 scheduler classes
rL332376: [X86] Split WriteCvtF2F into F32->F64 and F64->F32 scheduler classes
rL311694: AMDGPU: Fix gfx801 features
D36981: AMDGPU: Fix gfx801 features
D28531: AMDGPU : Fix ISA Version Definitions.
D22898: AMDGPU: Fix ffloor for SI
D22922: [AMDGPU] Assembler: better support for immediate literals in assembler.
D5125: Make sure to set trunc store action to Expand for all X86 targets.
Event Timeline
Log In to Comment