Changeset View
Changeset View
Standalone View
Standalone View
flang/include/flang/Frontend/CompilerInvocation.h
//===- CompilerInvocation.h - Compiler Invocation Helper Data ---*- C -*-===// | //===- CompilerInvocation.h - Compiler Invocation Helper Data ---*- C -*-===// | ||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#ifndef LLVM_FLANG_FRONTEND_COMPILERINVOCATION_H | #ifndef LLVM_FLANG_FRONTEND_COMPILERINVOCATION_H | ||||
#define LLVM_FLANG_FRONTEND_COMPILERINVOCATION_H | #define LLVM_FLANG_FRONTEND_COMPILERINVOCATION_H | ||||
#include "flang/Frontend/FrontendOptions.h" | #include "flang/Frontend/FrontendOptions.h" | ||||
#include "clang/Basic/Diagnostic.h" | #include "clang/Basic/Diagnostic.h" | ||||
#include "clang/Basic/DiagnosticOptions.h" | #include "clang/Basic/DiagnosticOptions.h" | ||||
#include "llvm/Option/ArgList.h" | |||||
namespace Fortran::frontend { | namespace Fortran::frontend { | ||||
/// Fill out Opts based on the options given in Args. | |||||
kiranchandramohan: Nit: Opts -> opts? | |||||
/// | |||||
/// When errors are encountered, return false and, if Diags is non-null, | |||||
Nit: Diags -> diags? Or is that convention? kiranchandramohan: Nit: Diags -> diags? Or is that convention? | |||||
Copy and paste error, thanks! awarzynski: Copy and paste error, thanks! | |||||
/// report the error(s). | |||||
bool ParseDiagnosticArgs(clang::DiagnosticOptions &opts, | |||||
llvm::opt::ArgList &args, bool defaultDiagColor = true); | |||||
class CompilerInvocationBase { | class CompilerInvocationBase { | ||||
public: | public: | ||||
/// Options controlling the diagnostic engine.$ | /// Options controlling the diagnostic engine.$ | ||||
llvm::IntrusiveRefCntPtr<clang::DiagnosticOptions> diagnosticOpts_; | llvm::IntrusiveRefCntPtr<clang::DiagnosticOptions> diagnosticOpts_; | ||||
CompilerInvocationBase(); | CompilerInvocationBase(); | ||||
CompilerInvocationBase(const CompilerInvocationBase &x); | CompilerInvocationBase(const CompilerInvocationBase &x); | ||||
~CompilerInvocationBase(); | ~CompilerInvocationBase(); | ||||
Show All 30 Lines |
Nit: Opts -> opts?