1. Nov 13, 2018
    • Aleksandr Urakov's avatar
      [PDB] Fix `vbases.test` requirement · 63e4ebcc
      Aleksandr Urakov authored
      Differential revision: https://reviews.llvm.org/D53506
      
      llvm-svn: 346672
      63e4ebcc
    • Haojian Wu's avatar
      [clangd] Don't show all refs results if -name is ambiguous in dexp. · 172c0455
      Haojian Wu authored
      Reviewers: ioeric
      
      Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D54430
      
      llvm-svn: 346671
      172c0455
    • Simon Pilgrim's avatar
      [CostModel][X86] Add some initial cost tests for funnel shifts · 095ea939
      Simon Pilgrim authored
      Still need to add full uniform/constant coverage but this is enough to check basic fshl/fshr cost handling
      
      llvm-svn: 346670
      095ea939
    • Aleksandr Urakov's avatar
      [ClangASTContext] Extract VTable pointers from C++ objects · 1dc51db7
      Aleksandr Urakov authored
      This patch processes the case of retrieving a virtual base when the object is
      already read from the debuggee memory.
      
      To achieve that ValueObject::GetCPPVTableAddress was removed and was
      reimplemented in ClangASTContext (because access to the process is needed to
      retrieve the VTable pointer in general, and because this is the only place that
      used old version of ValueObject::GetCPPVTableAddress).
      
      This patch allows to use real object's VTable instead of searching virtual bases
      by offsets restored by MicrosoftRecordLayoutBuilder. PDB has no enough info to
      restore VBase offsets properly, so we have to read real VTable instead.
      
      Differential revision: https://reviews.llvm.org/D53506
      
      llvm-svn: 346669
      1dc51db7
    • Stefan Granitz's avatar
      [CMake] Allow version overrides with -DLLDB_VERSION_MAJOR/MINOR/PATCH/SUFFIX · de62b76c
      Stefan Granitz authored
      Summary:
      This follows the approach in Clang. If no overrides are given, LLDB_VERSION_* is inferred from LLVM_VERSION_*. This mimics the current behaviour (PACKAGE_VERSION itself is generated from LLVM_VERSION_*).
      For in-tree builds LLVM_VERSION_* will be defined at this point already. For standalone builds, LLDBConfig.cmake is included after LLDBStandalone.cmake which includes LLVMConfig.cmake.
      
      Reviewers: labath, xiaobai
      
      Subscribers: mgorny, friss, aprantl, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D54333
      
      llvm-svn: 346668
      de62b76c
    • Stefan Granitz's avatar
      [CMake] Fix: add_host_subdirectory source/Host/macosx · 73ee35ee
      Stefan Granitz authored
      Summary: Typo introduced with https://reviews.llvm.org/D47929
      
      Reviewers: teemperor
      
      Subscribers: mgorny, friss, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D54335
      
      llvm-svn: 346667
      73ee35ee
    • Haojian Wu's avatar
      [clangd] Allow symbols from AnyScope in dexp. · 62fb2a21
      Haojian Wu authored
      Summary:
      We should allow symbols from any scope in dexp results, othewise
      `find StringRef` doesn't return any results (llvm::StringRef).
      
      Reviewers: ioeric
      
      Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D54427
      
      llvm-svn: 346666
      62fb2a21
    • Jonas Toth's avatar
      [clang-tidy] new check: bugprone-too-small-loop-variable · 6b3d33e9
      Jonas Toth authored
      The new checker searches for those for loops which has a loop variable with a "too small" type which means this type can't represent all values which are part of the iteration range.
      
      For example:
      
      ```
      int main() {
        long size = 300000;
        for( short int i = 0; i < size; ++i) {}
      }
      ```
      
      The short type leads to infinite loop here because it can't store all values in the `[0..size]` interval. In a real use case, size means a container's size which depends on the user input. Which means for small amount of objects the algorithm works, but with a larger user input the software will freeze.
      
      The idea of the checker comes from the LibreOffice project, where the same check was implemented as a clang compiler plugin, called `LoopVarTooSmall` (LLVM licensed).
      The idea is the same behind this check, but the code is different because of the different framework.
      
      Patch by ztamas.
      
      Reviewers: alexfh, hokein, aaron.ballman, JonasToth, xazax.hun, whisperity
      
      Reviewed By: JonasToth, whisperity
      
      Differential Revision: https://reviews.llvm.org/D53974
      
      llvm-svn: 346665
      6b3d33e9
  2. Nov 12, 2018