aboutsummaryrefslogtreecommitdiff
path: root/aidl_language_l.ll
diff options
context:
space:
mode:
authorJooyung Han <jooyung@google.com>2021-01-21 12:30:16 +0900
committerJooyung Han <jooyung@google.com>2021-01-21 19:41:43 +0900
commit161bb0f56b3ac9559c7c87d64b48be329256cf9d (patch)
treeacd0b558fce6d3e8b205f1c885e9da2aaf60bee8 /aidl_language_l.ll
parent8451a20b41819e4648d332b61b330fcf3b391a81 (diff)
downloadaidl-161bb0f56b3ac9559c7c87d64b48be329256cf9d.tar.gz
Limit comment tags placement
Documentation comments are recognized only when placed immediately before entities. --dumpapi now generates a single block comment when an entity is hidden/deprecated to comply with the change. /* @hide @deprecated */ AIDL entity; Bug: 177276893 Bug: 177616426 Test: aidl_unittests Change-Id: I2c00d8e234d1a1ec3fbbcf34f290e0b163d508c0
Diffstat (limited to 'aidl_language_l.ll')
-rw-r--r--aidl_language_l.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/aidl_language_l.ll b/aidl_language_l.ll
index 3ff7c2eb..e43ef452 100644
--- a/aidl_language_l.ll
+++ b/aidl_language_l.ll
@@ -52,7 +52,7 @@ floatvalue [0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?f?
\/\* { extra_text += yytext; BEGIN(LONG_COMMENT); }
<LONG_COMMENT>\*+\/ { extra_text += yytext; yylloc->step(); BEGIN(INITIAL);
- comments.push_back({Comment::Type::BLOCK, extra_text});
+ comments.push_back({extra_text});
extra_text.clear(); }
<LONG_COMMENT>\*+ { extra_text += yytext; }
<LONG_COMMENT>\n+ { extra_text += yytext; yylloc->lines(yyleng); }
@@ -62,7 +62,7 @@ floatvalue [0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?f?
return yy::parser::token::C_STR; }
\/\/.* { extra_text += yytext; extra_text += "\n";
- comments.push_back({Comment::Type::LINE, extra_text});
+ comments.push_back({extra_text});
extra_text.clear(); }
\n+ { yylloc->lines(yyleng); yylloc->step(); }