Skip to content

expander.pyが複数行コメントアウトされたincludeを展開してしまう #194

Description

@harurunrunrun

expander.py では、

// #include <atcoder/all>

/* #include <atcoder/all> */

などはincludeを展開しないようになっていますが、以下のような場合、includeが展開されてしまいます。

/* 
#include <atcoder/all>
*/

#include <atcoder/dsu>

int main(){
    int n = 10;
    atcoder::dsu uf(n);
}

この場合、コメントアウト内でatcoder/dsuが展開された結果、include <atcoder/dsu>は展開されず、コンパイルが通らないコードが生成されます。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions