Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] ASTRewrite: Comment handling


I'm currently working with the ASTRewrite for moving methods around and stumbled upon the following which I consider to be a bug. Given the following code snippet:

#ifndef A_H_
#define A_H_

class Base {
class Derived : Base {
    void myMethod(int a) {
        // comment in body
#endif /* A_H_ */

In this sample, the body comment of the method is considered to be a leading comment to the #endif node

Back to the top