Skip to content
  1. Aug 27, 2011
    • Douglas Gregor's avatar
      Introduce support for a simple module import declaration, which · 08142534
      Douglas Gregor authored
      loads the named module. The syntax itself is intentionally hideous and
      will be replaced at some later point with something more
      palatable. For now, we're focusing on the semantics:
        - Module imports are handled first by the preprocessor (to get macro
        definitions) and then the same tokens are also handled by the parser
        (to get declarations). If both happen (as in normal compilation),
        the second one is redundant, because we currently have no way to
        hide macros or declarations when loading a module. Chris gets credit
        for this mad-but-workable scheme.
        - The Preprocessor now holds on to a reference to a module loader,
        which is responsible for loading named modules. CompilerInstance is
        the only important module loader: it now knows how to create and
        wire up an AST reader on demand to actually perform the module load.
        - We search for modules in the include path, using the module name
        with the suffix ".pcm" (precompiled module) for the file name. This
        is a temporary hack; we hope to improve the situation in the
        future.
      
      llvm-svn: 138679
      08142534
  2. Aug 26, 2011
  3. Aug 25, 2011
  4. Aug 24, 2011
  5. Aug 23, 2011
    • Eli Friedman's avatar
      Remove function parameter which always used the default value. · c616c5ff
      Eli Friedman authored
      llvm-svn: 138368
      c616c5ff
    • Caitlin Sadowski's avatar
      Thread-safety analysis: adding in a basic lockset tracking system. This · afbbd8e5
      Caitlin Sadowski authored
      system flags an error when unlocking a lock which was not held, locking
      the same lock twice, having a different lockset on each iteration of a
      loop, or going out of scope while still holding a lock. In order to
      successfully use the lockset, this patch also makes sure that attribute
      arguments are attached correctly for later parsing.
      
      This patch was also worked on by DeLesley Hutchins.
      
      Note: This patch has been reviewed by Chandler Carruth and Jeffrey
      Yasskin. Feel free to provide post-commit review comments for a
      subsequent patch.
      
      llvm-svn: 138350
      afbbd8e5
    • Matt Beaumont-Gay's avatar
      Fix an incorrect note. · 56381b85
      Matt Beaumont-Gay authored
      For the test case added to function-redecl.cpp, we were previously complaining
      about a mismatch in the parameter types, since the definition used the
      typedef'd type.
      
      llvm-svn: 138318
      56381b85
  6. Aug 22, 2011
  7. Aug 19, 2011
  8. Aug 18, 2011
Loading