1. 03 6月, 2015 15 次提交
  2. 02 6月, 2015 19 次提交
  3. 01 6月, 2015 6 次提交
    • M
      Merge pull request #3162 from mavasani/StatefulAnalyzer_Analyzer · 61e73457
      Manish Vasani 提交于
      Add an analyzer that detects incorrect action registrations for stateful analyzers.
      Fixes #2949 
      61e73457
    • M
      Add an analyzer that detects incorrect action registrations for stateful analyzers. · 7824bb4c
      Manish Vasani 提交于
      Fixes #2949
      
      User scenario: User writes an analyzer that either defines a CompilationStartAction or CodeBlockStartAction to perform stateful analysis on the compilation/code block.
      An analyzer start action enables performing stateful analysis over a given code unit, such as a code block, compilation, etc. Careful design is necessary to achieve efficient analyzer execution without memory leaks. This analyzer provides the following guidelines for writing such analyzers:
      1. Define a new scope for the registered start action, possibly with a private nested type for analyzing each code unit.
      2. If required, define and initialize state in the start action.
      3. Register at least one non-end action that refers to this state in the start action. If no such action is necessary, consider replacing the start action with a non-start action. For example, a CodeBlockStartAction with no registered actions or only a registered CodeBlockEndAction should be replaced with a CodeBlockAction.
      4. If required, register an end action to report diagnostics based on the final state.
      
      Fix description: We already have an analyzer flagging RegisterXXXAction invocations for other incorrect usages. This change adds 2 more rules to this analyzer to flag:
      1. Start analysis context objects with only a registered end action.
      2. Start analysis context objects with no registered actions.
      
      Testing: Added unit tests for this analyzer + manual testing. Verified existing tests pass.
      7824bb4c
    • H
      added unit test for build only case · daf0f65e
      Heejae Chang 提交于
      daf0f65e
    • H
      Merge pull request #3212 from heejaechang/cleanup · e2ae515b
      Heejae Chang 提交于
      cleanup some code
      e2ae515b
    • H
      cleanup some code · b8622fe5
      Heejae Chang 提交于
      renamed id to Id to match other variable names. and added readonly.
      b8622fe5
    • H
      Merge pull request #3152 from heejaechang/compilerhelp3 · a7799b22
      Heejae Chang 提交于
      changed bing search to use bing dev search
      a7799b22