[flang-commits] [flang] fcf629d - [flang][driver] Fix typos and inconsistent comments (nfc)

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Thu Mar 25 12:02:07 PDT 2021


Author: Andrzej Warzynski
Date: 2021-03-25T19:01:40Z
New Revision: fcf629d76a49781c131cbbd442dea84b27c9ff28

URL: https://github.com/llvm/llvm-project/commit/fcf629d76a49781c131cbbd442dea84b27c9ff28
DIFF: https://github.com/llvm/llvm-project/commit/fcf629d76a49781c131cbbd442dea84b27c9ff28.diff

LOG: [flang][driver] Fix typos and inconsistent comments (nfc)

Added: 
    

Modified: 
    flang/lib/Frontend/CompilerInvocation.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index 6d0003e79571..3bd541e40c0f 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -390,11 +390,11 @@ static void parseDialectArgs(CompilerInvocation &res, llvm::opt::ArgList &args,
         Fortran::common::LanguageFeature::OpenMP);
   }
 
-  //-fpedantic
+  // -pedantic
   if (args.hasArg(clang::driver::options::OPT_pedantic)) {
     res.set_EnableConformanceChecks();
   }
-  // -std=f2018.  Current behaviour is same as -fpedantic
+  // -std=f2018 (currently this implies -pedantic)
   // TODO: Set proper options when more fortran standards
   // are supported.
   if (args.hasArg(clang::driver::options::OPT_std_EQ)) {
@@ -560,7 +560,6 @@ void CompilerInvocation::setFortranOpts() {
   if (frontendOptions.instrumentedParse_)
     fortranOptions.instrumentedParse = true;
 
-  // Set the standard
   if (enableConformanceChecks()) {
     fortranOptions.features.WarnOnAllNonstandard();
   }


        


More information about the flang-commits mailing list