Skip to content

Commit 1ddc138

Browse files
Remaining edits that aren't worth automating.
1 parent f8a3ce5 commit 1ddc138

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ wiki](https://github.com/Microsoft/checkedc-clang/wiki).
6666
|Debug X86 Windows| Checked C and clang regression tests|![Debug X86 Windows status](https://msresearch.visualstudio.com/_apis/public/build/definitions/f6454e27-a46c-49d9-8453-29d89d53d2f9/211/badge)|
6767
|Debug X64 Windows| Checked C and clang regression tests| ![Debug X64 Windows status](https://msresearch.visualstudio.com/_apis/public/build/definitions/f6454e27-a46c-49d9-8453-29d89d53d2f9/205/badge)|
6868
|Debug X64 Linux | Checked C and clang regression tests| ![Debug X64 Linux status](https://msresearch.visualstudio.com/_apis/public/build/definitions/f6454e27-a46c-49d9-8453-29d89d53d2f9/217/badge)|
69-
|Debug X64 Linux | 3c (Checked C Convert tool) nightly tests| ![Nightly Sanity Tests](https://github.com/correctcomputation/checkedc-clang/workflows/Nightly%20Sanity%20Tests/badge.svg?branch=master)|
69+
|Debug X64 Linux | 3C (Checked-C-Convert tool) nightly tests| ![Nightly Sanity Tests](https://github.com/correctcomputation/checkedc-clang/workflows/Nightly%20Sanity%20Tests/badge.svg?branch=master)|
7070
|Release X64 Linux| Checked C, clang, and LLVM nightly tests|![Release X64 Linux status](https://msresearch.visualstudio.com/_apis/public/build/definitions/f6454e27-a46c-49d9-8453-29d89d53d2f9/238/badge)|
7171

7272
## Contributing

clang-tools-extra/clangd/ClangdLSPServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ void ClangdLSPServer::onInitialize(const InitializeParams &Params,
391391
SupportsOffsetsInSignatureHelp = Params.capabilities.OffsetsInSignatureHelp;
392392
#ifdef INTERACTIVE3C
393393
// initialize our constraint building system.
394-
log("Interactive CheckedC convert mode.\n");
394+
log("Interactive 3C mode.\n");
395395
Server->_3CCollectAndBuildInitialConstraints(this);
396396
llvm::json::Object Result{
397397
{{"capabilities",

clang-tools-extra/clangd/tool/ClangdMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static llvm::cl::list<std::string> TweakList(
283283
static llvm::cl::OptionCategory _3CCategory("3C",
284284
"This is "
285285
"an interactive version "
286-
"of checked c convert "
286+
"of 3C "
287287
"tool.");
288288

289289
static llvm::cl::opt<bool> DumpIntermediate("dump-intermediate",

clang/docs/checkedc/3C.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Checked-C-Convert
1+
# 3C (Checked-C-Convert)
22

33

44
This is a clang tool that tries to automatically convert `C` code to include `Checked

clang/include/clang/3C/3C.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// The main interface for invoking 3C or 3c tool.
9+
// The main interface for invoking 3C tool.
1010
// This provides various methods that can be used to access different
1111
// aspects of the 3C tool.
1212
//

clang/include/clang/3C/Constraints.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// a >= b
1111
// a implies b
1212
//
13-
// The Checked C converter tool performs type inference to identify locations
13+
// The 3C tool performs type inference to identify locations
1414
// where a C type might be replaced with a Checked C type. This interface
1515
// does the solving to figure out where those substitions might happen.
1616
//===----------------------------------------------------------------------===//

clang/include/clang/Basic/LangOptions.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ LANGOPT(CPlusPlus17 , 1, 0, "C++17")
9494
LANGOPT(CPlusPlus2a , 1, 0, "C++2a")
9595
LANGOPT(ObjC , 1, 0, "Objective-C")
9696
LANGOPT(CheckedC , 1, 0, "Checked C extension")
97-
LANGOPT(_3C , 1, 0, "Automated Checked C converter mode")
97+
LANGOPT(_3C , 1, 0, "3C (Automated Checked C converter) mode")
9898
BENIGN_LANGOPT(ObjCDefaultSynthProperties , 1, 0,
9999
"Objective-C auto-synthesized properties")
100100
BENIGN_LANGOPT(EncodeExtendedBlockSig , 1, 0,

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,8 @@ def forder_file_instrumentation : Flag<["-"], "forder-file-instrumentation">,
785785
Group<f_Group>, Flags<[CC1Option, CoreOption]>,
786786
HelpText<"Generate instrumented code to collect order file into default.profraw file (overridden by '=' form of option or LLVM_PROFILE_FILE env var)">;
787787

788+
def f3c_tool : Flag<["-"], "f3c-tool">, Group<f_Group>, Flags<[CC1Option]>,
789+
HelpText<"Enable 3C tool mode (supposed to be run by tools that needs only AST)">;
788790
def faddrsig : Flag<["-"], "faddrsig">, Group<f_Group>, Flags<[CoreOption, CC1Option]>,
789791
HelpText<"Emit an address-significance table">;
790792
def fno_addrsig : Flag<["-"], "fno-addrsig">, Group<f_Group>, Flags<[CoreOption]>,
@@ -801,8 +803,6 @@ def fcheckedc_extension : Flag<["-"], "fcheckedc-extension">, Group<f_Group>, Fl
801803
HelpText<"Accept Checked C extension">;
802804
def fno_checkedc_extension : Flag<["-"], "fno-checkedc-extension">, Group<f_Group>, Flags<[CC1Option]>,
803805
HelpText<"Do not accept Checked C extension">;
804-
def f3c_tool : Flag<["-"], "f3c-tool">, Group<f_Group>, Flags<[CC1Option]>,
805-
HelpText<"Enable Checked C converter tool mode (supposed to be run by tools that needs only AST)">;
806806
def fdump_extracted_comparison_facts : Flag<["-"], "fdump-extracted-comparison-facts">, Group<f_Group>, Flags<[CC1Option]>,
807807
HelpText<"Dump extracted comparison facts">;
808808
def fdump_widened_bounds : Flag<["-"], "fdump-widened-bounds">, Group<f_Group>, Flags<[CC1Option]>,

clang/lib/Sema/SemaBounds.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ namespace {
21042104
CheckedScopeSpecifier CSS,
21052105
EquivExprSets *EquivExprs) {
21062106

2107-
// If we are running to Checked C converter (AST only) tool, then disable
2107+
// If we are running the 3C (AST only) tool, then disable
21082108
// bounds checking.
21092109
if (S.getLangOpts()._3C)
21102110
return;

clang/tools/3c/utils/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ contains the commands to run the `3c` tool on individual source files.
1717

1818
### Example:
1919
```
20-
python convert-commands.py --cc <path_to_compile_commands.json> -p <path_to_the_checked_c_convert_binary>
20+
python convert-commands.py --cc <path_to_compile_commands.json> -p <path_to_the_3c_binary>
2121
```
2222

2323
### Generating `compile_commands.json`

0 commit comments

Comments
 (0)