[LLVMbugs] [Bug 14791] New: Formatting: INITIALIZE PASS macros misformatted, if followed by function call

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 4 09:54:20 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=14791

             Bug #: 14791
           Summary: Formatting: INITIALIZE PASS macros misformatted, if
                    followed by function call
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: grosser at fim.uni-passau.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9801
  --> http://llvm.org/bugs/attachment.cgi?id=9801
Test case

The following code is misformatted:

#define INITIALIZE_PASS_BEGIN(a,b,c,d,e)
#define INITIALIZE_AG_DEPENDENCY(A)
#define INITIALIZE_PASS_DEPENDENCY(A)
#define INITIALIZE_PASS_END(a,b,c,d,e)

INITIALIZE_PASS_BEGIN(ScopDetection, "polly-detect", "Detect", false, false)
INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
INITIALIZE_PASS_DEPENDENCY(DominatorTree)
INITIALIZE_PASS_END(ScopDetection, "polly-detect", "Detect", false, false)

int *createScopDetectionPass() {
  return 0;
}

to:

#define INITIALIZE_PASS_BEGIN(a, b, c, d, e)
#define INITIALIZE_AG_DEPENDENCY(A)
#define INITIALIZE_PASS_DEPENDENCY(A)
#define INITIALIZE_PASS_END(a, b, c, d, e)

INITIALIZE_PASS_BEGIN(ScopDetection, "polly-detect", "Detect", false,
                      false) INITIALIZE_AG_DEPENDENCY(
    AliasAnalysis) INITIALIZE_PASS_DEPENDENCY(
    DominatorTree) INITIALIZE_PASS_END(ScopDetection, "polly-detect", "Detect",
                                       false,
                                       false) int *createScopDetectionPass() {
  return 0;
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list