[flang] bugfixing and review comments
authorpeter klausler <pklausler@nvidia.com>
Wed, 14 Nov 2018 19:57:47 +0000 (11:57 -0800)
committerpeter klausler <pklausler@nvidia.com>
Wed, 14 Nov 2018 19:57:47 +0000 (11:57 -0800)
Original-commit: flang-compiler/f18@6df4a52d6bb2575c3eb4726b633a0cf98da0d298
Reviewed-on: https://github.com/flang-compiler/f18/pull/225
Tree-same-pre-rewrite: false

flang/documentation/C++style.md
flang/lib/parser/characters.h

index 1e9e975..768f44b 100644 (file)
@@ -203,7 +203,7 @@ A feature matrix:
 | pointer | nullable | default null | owning | reassignable | copyable | undefined type ok? |
 | ------- | -------- | ------------ | ------ | ------------ | -------- | ------------------ |
 | `*p` | yes | no | no | yes | shallowly | yes |
-| `&r` | no | n/a | no | no | shallowly | no |
+| `&r` | no | n/a | no | no | shallowly | yes |
 | `unique_ptr<>` | yes | yes | yes | yes | no | no |
 | `shared_ptr<>` | yes | yes | yes | yes | shallowly | no |
 | `OwningPointer<>` | yes | yes | yes | yes | no | yes |
index 7a0f41d..362ccc4 100644 (file)
@@ -103,7 +103,7 @@ inline constexpr char HexadecimalDigitValue(char ch) {
 
 inline constexpr std::optional<char> BackslashEscapeValue(char ch) {
   switch (ch) {
-  case 'a': return {'\a'};
+  // case 'a': return {'\a'};  // pgf90 has no \a
   case 'b': return {'\b'};
   case 'f': return {'\f'};
   case 'n': return {'\n'};
@@ -119,7 +119,7 @@ inline constexpr std::optional<char> BackslashEscapeValue(char ch) {
 
 inline constexpr std::optional<char> BackslashEscapeChar(char ch) {
   switch (ch) {
-  case '\a': return {'a'};
+  // case '\a': return {'a'};  // pgf90 has no \a
   case '\b': return {'b'};
   case '\f': return {'f'};
   case '\n': return {'n'};