[LLVMbugs] [Bug 16574] New: FrontendAction::BeginSourceFile does not allow user to specify Preprocessor or ASTContext prior to calling method.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 9 08:20:25 PDT 2013


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

            Bug ID: 16574
           Summary: FrontendAction::BeginSourceFile does not allow user to
                    specify Preprocessor or ASTContext prior to calling
                    method.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: neil at codeplay.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10842
  --> http://llvm.org/bugs/attachment.cgi?id=10842&action=edit
Patch adding checks based on Clang SVN r185944

In FrontendAction::BeginSourceFile it checks whether the CompilerInstance has a
FileManager and a SourceManager prior to creating them, but does not check
whether the CompilerInstance has either a Preprocessor or an ASTContext before
creating them.

Attached is a patch which adds in a check for hasPreprocessor and hasASTContext
prior to creating them.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130709/999b7b65/attachment.html>


More information about the llvm-bugs mailing list