GCC Wikia
登録
Advertisement

このページを編集する際は,編集に関する方針に従ってください.[]

概要[]

  • gcc-4.1.0/libcpp/include/line-map.hにて定義
  • 行を変化させる理由
    • LC_ENTER
      • 新しいファイルを取り込むことになったから
    • LC_LEAVE
      • ファイルを抜けることになったから
    • LC_RENAME
      • LC_ENTERでもRC_LEAVEでもない理由

実装[]

26 /* Reason for adding a line change with add_line_map ().  LC_ENTER is
27    when including a new file, e.g. a #include directive in C.
28    LC_LEAVE is when reaching a file's end.  LC_RENAME is when a file
29    name or line number changes for neither of the above reasons
30    (e.g. a #line directive in C).  */
31 enum lc_reason {LC_ENTER = 0, LC_LEAVE, LC_RENAME};



リンク元

Advertisement