[flang] Adjust TODO messages to reflect deliberate behavior.
authorpeter klausler <pklausler@nvidia.com>
Mon, 9 Apr 2018 18:43:37 +0000 (11:43 -0700)
committerpeter klausler <pklausler@nvidia.com>
Mon, 9 Apr 2018 20:49:26 +0000 (13:49 -0700)
Original-commit: flang-compiler/f18@9636998ee44439e46e10bcfe0bbb6e6e74b14c6f
Reviewed-on: https://github.com/flang-compiler/f18/pull/48
Tree-same-pre-rewrite: false

flang/lib/parser/preprocessor.cc

index df15f64..91c7282 100644 (file)
@@ -377,7 +377,7 @@ void Preprocessor::Directive(const TokenSequence &dir, Prescanner *prescanner) {
     return;
   }
   if (IsDecimalDigit(dir.TokenAt(j)[0]) || dir.TokenAt(j)[0] == '"') {
-    return;  // TODO: treat as #line
+    return;  // treat like #line, ignore it
   }
   std::size_t dirOffset{j};
   std::string dirName{ToLowerCaseLetters(dir.TokenAt(dirOffset).ToString())};
@@ -387,7 +387,7 @@ void Preprocessor::Directive(const TokenSequence &dir, Prescanner *prescanner) {
     nameToken = dir.TokenAt(j);
   }
   if (dirName == "line") {
-    // TODO: implement #line
+    // #line is ignored
   } else if (dirName == "define") {
     if (nameToken.empty()) {
       prescanner->Say("#define: missing or invalid name"_err_en_US,