search for: sourceloc

Displaying 20 results from an estimated 64 matches for "sourceloc".

Did you mean: sourcedoc
2012 Sep 13
1
[LLVMdev] Parsing C++ template parameters using cindex.py
...ldren()] for c in children: DeepPrint(c, depth + 2) index = Index.create() tu = index.parse(None, ['testfile.cpp']) children = [c for c in tu.cursor.get_children() if c.kind == CursorKind.VAR_DECL] for c in children: DeepPrint(c) Dump output: cursor test_int location <SourceLocation file 'testfile.cpp', line 11, column 11> result TypeKind.INVALID kind CursorKind.VAR_DECL type kind TypeKind.UNEXPOSED xdata 0 data 48356112 1 4106544 children cursor None location <SourceLocation file 'testfile.cpp', line 11, column 1> result TypeKind....
2010 Oct 13
1
[LLVMdev] EXC_BAD_ACCESS: invalid MemoryBuffer from ContentCache::getBuffer
I'm using the latest llvm/clang 2.8 releases and am getting EXC_BAD_ACCESS crashes in ContentCache::getBuffer. This happens when I'm printing out errors from a compilation run and iterating over TextDiagnosticBuffer returned errors. When checking the errors, I construct a FullSourceLoc and do: int LineNum = SourceLoc.getInstantiationLineNumber(); int ColNum = SourceLoc.getInstantiationColumnNumber(); which return sane values. Checking SourceLoc.isInvalid() always returns false, so I'm confident SourceLoc is valid. However, when I do: const char * bufname = SourceLoc.getMa...
2017 Jul 21
2
Where does the LLVM implement the Ubsan's instrumentations?
> On Jul 21, 2017, at 6:04 AM, Shi, Steven via llvm-dev <llvm-dev at lists.llvm.org> wrote: > >>> I think your best bet for controlling code bloat is to compile with >>> -fsanitize=undefined -fsanitize-trap=undefined. >> >> Also you may not need all of UBSan's checks at the same time -- so pick >> and choose among its checks using the
2016 Jul 20
2
[XRay] Build instrumented Clang, some analysis results
...ypeLoc) 80626 clang::FunctionDecl::getCanonicalDecl() 79489 clang::TagDecl::getDefinition() const 77347 clang::Lexer::LexIdentifier(clang::Token&, char const*) - The top few slowest (filtered by hand, because, see caveats below): 1. main 2. clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) 3. clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation, std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,...
2011 Oct 25
2
[LLVMdev] [LLVMDev] Clang stopped compiling?
...d llvm[4]: Compiling cc1as_main.cpp for Debug+Asserts build llvm[4]: Compiling driver.cpp for Debug+Asserts build llvm[4]: Linking Debug+Asserts executable clang /home/hades/data/Tesi/llvm-build/Debug+Asserts/lib/libclangSema.a(SemaExpr.o): In function `clang::Sema::BuildBinOp(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*)': /home/hades/data/Tesi/llvm/tools/clang/lib/Sema/SemaExpr.cpp:8011: undefined reference to `clang::Sema::checkPseudoObjectAssignment(clang::Scope*, clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*)' /h...
2013 May 26
2
[LLVMdev] How to use WhileStmt to implement while loop in LLVM
...ss in Stmt.h http://clang.llvm.org/doxygen/Stmt_8h_source.html to implement while loop like while(i==1){} that is required to be inserted For example, Convert x++; y++; to x++; while(i=1){} y++; from the class's constructor: WhileStmt(ASTContext &C, VarDecl *Var, Expr *cond, Stmt *body,SourceLocation WL);//I know C --> 1//Var--> i//cond --> =//body --> NOP//WL --> ?? but how to implement these terms in LLVM pass? and what's the SourceLocation? Thanks -- *Rasha Salah Omar Msc Student at E-JUST Demonestrator at Faculty of Computers and Informatics Benha University *...
2020 May 21
2
RFC: Add DWARF support for yaml2obj
On 5/21/20, Adrian Prantl <aprantl at apple.com> wrote: > I think the example looks like it would be really useful for many categories > of testcases! > Will it still be possible to manually specify the .debug_abbrev section when > this is desired after you are done? Yes, I think it works. There are two ways to edit the .debug_abbrev section. i) Edit the "Attr:" and
2012 Sep 09
2
[LLVMdev] : troubles during compiling
...lib/StaticAnalyzer/Core/../../../include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h:17:0, from /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp:14: /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/../../../include/clang/Basic/SourceLocation.h:185:13: note: bool clang::operator<(const clang::SourceLocation&, const clang::SourceLocation&) /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/../../../include/clang/Basic/SourceLocation.h:185:13: note: no known conversion for argument 1 from 'llvm::FoldingSet...
2011 Oct 25
0
[LLVMdev] [LLVMDev] Clang stopped compiling?
.... > Undefined symbols for architecture x86_64: > "clang::Sema::checkPseudoObjectRValue(clang::Expr*)", referenced from: > clang::Sema::CheckPlaceholderExpr(clang::Expr*) in libclangSema.a(SemaExpr.o) > "clang::Sema::checkPseudoObjectIncDec(clang::Scope*, clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*)", referenced from: > clang::Sema::BuildUnaryOp(clang::Scope*, clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*) in libclangSema.a(SemaExpr.o) > "clang::Sema::checkPseudoObjectAssignment(clang::Scope*, clang::SourceLo...
2012 Sep 09
0
[LLVMdev] : troubles during compiling
...er/Core/../../../include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h:17:0, > from > /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/PathDiagnostic.cpp:14: > /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/../../../include/clang/Basic/SourceLocation.h:185:13: > note: bool clang::operator<(const clang::SourceLocation&, const > clang::SourceLocation&) > /media/data/dev/llvm/llvm/tools/clang/lib/StaticAnalyzer/Core/../../../include/clang/Basic/SourceLocation.h:185:13: > note: no known conversion for argument 1 from &...
2013 May 26
0
[LLVMdev] How to use WhileStmt to implement while loop in LLVM
...ource.html > > to implement |while loop| like |while(i==1){}| that is required to be > inserted > > For example, Convert x++; y++; to x++; while(i=1){} y++; > > from the class's constructor: > > |WhileStmt(ASTContext &C, VarDecl *Var, Expr *cond, Stmt *body,SourceLocation WL); > //I know C --> 1 > //Var--> i > //cond --> = > //body --> NOP > //WL --> ??| > > but how to implement these terms in LLVM pass? and what's the > SourceLocation? Do you actually mean LLVM pass? Or are you working inside clang (for exampl...
2016 Dec 24
1
failure at link time 3.9.1
...tion `(anonymous namespace)::PCHContainerGenerator::DebugTypeVisitor::VisitTypeDecl(clang::TypeDecl*)': /home/rdp/dev/llvm/llvm/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp:90: undefined reference to `clang::CodeGen::CGDebugInfo::getOrCreateStandaloneType(clang::QualType, clang::SourceLocation)' ../../../../lib/libclangCodeGen.a(ObjectFilePCHContainerOperations.cpp.o): In function `(anonymous namespace)::PCHContainerGenerator::DebugTypeVisitor::VisitObjCInterfaceDecl(clang::ObjCInterfaceDecl*)': /home/rdp/dev/llvm/llvm/tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations...
2013 May 26
1
[LLVMdev] How to use WhileStmt to implement while loop in LLVM
...ile loop| like |while(i==1){}| that is required to be >> inserted >> >> For example, Convert x++; y++; to x++; while(i=1){} y++; >> >> from the class's constructor: >> >> |WhileStmt(ASTContext &C, VarDecl *Var, Expr *cond, Stmt >> *body,SourceLocation WL); >> //I know C --> 1 >> //Var--> i >> //cond --> = >> //body --> NOP >> //WL --> ??| >> >> but how to implement these terms in LLVM pass? and what's the >> SourceLocation? >> > > Do you actually mean LLVM...
2015 Nov 30
2
samba430-jessie script question
All software development progresses so quickly that anyone's script may not be current. Even a script I may have written. And that is the overall challenge with scripts, in general. We users become dependent on scripts. And we users need the learn independence. I have been learning what scripts do and how scripts do what they do. I was wanting to install 4.3.1 on Debian8 and see if I
2012 Jul 03
2
[LLVMdev] error with cmake build of llvm
...libclang_static Linking CXX executable ../../../../bin/c-index-test ../../../../lib/libclang.so.3.2: undefined reference to `clang::ReturnStmt::getRetValue()' ../../../../lib/libclang.so.3.2: undefined reference to `clang::NestedNameSpecifierLocBuilder::MakeGlobal(clang::ASTContext&, clang::SourceLocation)' ../../../../lib/libclang.so.3.2: undefined reference to `clang::NestedNameSpecifierLocBuilder::Extend(clang::ASTContext&, clang::NamespaceDecl*, clang::SourceLocation, clang::SourceLocation)' .... I could not figure out the reason, any idea is welcome ? Thanks. -- Best Regards...
2015 Nov 30
0
samba430-jessie script question
...ons and help, both Louis and Rowland. > > > How about this: #!/bin/bash ## where to build samba. # NOTE: Samba will be installed to /usr/local/ # if build dir given and exists, then it will # used as build base, else /usr/src will be used if [ -n $1 ] && [ -d $1 ]; then SOURCELOCATION=$1 else SOURCELOCATION=/usr/src fi # Packages required to build Samba4 apt-get install -y build-essential libacl1-dev libattr1-dev libblkid-dev libreadline-dev python-dev libpam0g-dev python-dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr krb5-user docbook-xs...
2020 May 22
2
RFC: Add DWARF support for yaml2obj
...ection (while leaving some of > them to be auto-generated, and spelling out others, for instance). Nice catch! It's a useful feature, but I cannot give an answer right now. I will be back to this thread, once I have some ideas on this. > - It's not clear to me whether having a "SourceLocation" entry as a > first class entity is really worth it. This > """ > - SourceLocation: > - File: foo > - Line: 1 > - Column: 2 > """ > is not that much shorter than > """ > - Attr: DW_AT_decl_file >...
2020 Jun 09
4
[RFC] Refactor Clang: move frontend/driver/diagnostics code to LLVM
...nce and `clang -cc1` in general) should remain in Clang. Later we can decide that there are some commonalities that can be shared, but these are expected to be relatively small. In terms of the infra code, libclangDriver requires DiagnosticEngine, which contains SourceManager and also requires SourceLocation. This would suggest the following steps. 1a. Generalize SourceManager so that it's suitable for both Clang and Flang 1b. Move the updated SourceManager, together with SLocEntry, SourceLocation, FileManager, VFS to `frontend-support` (i.e. the new location for the common driver code) 2a....
2020 Jun 03
2
[cfe-dev] [RFC] Refactor Clang: move frontend/driver/diagnostics code to LLVM
...ake sure that that >> lives in llvm-project/flang. >> >> *FLANG'S DEPENDENCIES ON CLANG* >> These are the dependencies on Clang that we have identified so far while >> prototyping the Flang driver. >> >> 1. All the machinery related to Diagnostics & SourceLocation. >> >> This is currently part of libclangBasic [4] and is used in _many_ places >> in Clang. The official documentation [5] suggests that this could be >> re-used for non-C-based languages. In particular, we feel that It would >> make a lot of sense for Flang to u...
2011 Nov 09
2
[LLVMdev] [cfe-dev] LLVM 3.0rc3 Testing Beginning
...uint64_t, const void*)’: /home/greened/src/llvm-30-rc3/llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp:1241:12: warning: variable ‘idx_mode’ set but not used [-Wunused-but-set-variable] /home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/Lex/Lexer.cpp: In static member function ‘static clang::SourceLocation clang::Lexer::GetBeginningOfToken(clang::SourceLocation, const clang::SourceManager&, const clang::LangOptions&)’: /home/greened/src/llvm-30-rc3/clang-3.0rc3.src/lib/Lex/Lexer.cpp:489:30: warning: variable ‘FileLocInfo’ set but not used [-Wunused-but-set-variable] /home/greened/src/llv...