clang  14.0.0git
CLWarnings.h
Go to the documentation of this file.
1 //===--- CLWarnings.h - Maps some cl.exe warning ids -----------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_CLANG_BASIC_CLWARNINGS_H
10 #define LLVM_CLANG_BASIC_CLWARNINGS_H
11 
12 #include "llvm/ADT/Optional.h"
13 
14 namespace clang {
15 
16 namespace diag {
17 enum class Group;
18 }
19 
20 /// For cl.exe warning IDs that cleany map to clang diagnostic groups,
21 /// returns the corresponding group. Else, returns an empty Optional.
23 
24 } // end namespace clang
25 
26 #endif // LLVM_CLANG_BASIC_CLWARNINGS_H
clang::diagGroupFromCLWarningID
llvm::Optional< diag::Group > diagGroupFromCLWarningID(unsigned)
For cl.exe warning IDs that cleany map to clang diagnostic groups, returns the corresponding group.
Definition: CLWarnings.cpp:19
llvm::Optional
Definition: LLVM.h:40
clang::diag::Group
Group
Definition: DiagnosticCategories.h:23
clang
Definition: CalledOnceCheck.h:17